Add the ownership system #96

Merged
raphael merged 8 commits from ownership-system into main 2024-04-03 15:44:19 +00:00
2 changed files with 12 additions and 0 deletions
Showing only changes of commit c6b4c64067 - Show all commits

View file

@ -36,4 +36,7 @@ pub struct Player {
/// The uuid of the player. /// The uuid of the player.
pub uuid: Uuid, pub uuid: Uuid,
/// The color of the player.
pub color: (u8, u8, u8),
} }

View 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);