generated from tipragot/rust
Add the ownership system #96
|
@ -24,6 +24,7 @@ impl Plugin for OwnershipPlugin {
|
||||||
#[derive(Resource)]
|
#[derive(Resource)]
|
||||||
pub struct OwnershipColorContrast(pub f32);
|
pub struct OwnershipColorContrast(pub f32);
|
||||||
|
|
||||||
|
/// Init resources related to the ownership of the tiles.
|
||||||
fn setup_ownership_resources(mut commands: Commands) {
|
fn setup_ownership_resources(mut commands: Commands) {
|
||||||
commands.insert_resource(OwnershipColorContrast(0.4));
|
commands.insert_resource(OwnershipColorContrast(0.4));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue