generated from tipragot/rust
Add the ownership system #96
|
@ -36,4 +36,7 @@ pub struct Player {
|
|||
|
||||
/// The uuid of the player.
|
||||
pub uuid: Uuid,
|
||||
|
||||
/// The color of the player.
|
||||
pub color: (u8, u8, u8),
|
||||
}
|
||||
|
|
9
crates/border-wars/src/map/ownership.rs
Normal file
9
crates/border-wars/src/map/ownership.rs
Normal file
|
@ -0,0 +1,9 @@
|
|||
//! All code related to the ownership of the tiles.
|
||||
|
||||
use bevy::prelude::*;
|
||||
|
||||
use crate::Player;
|
||||
|
||||
/// The owner of a tile.
|
||||
#[derive(Component, Clone)]
|
||||
pub struct Owner(pub Player);
|
Loading…
Reference in a new issue