diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-03-24 06:26:22 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-03-24 06:27:47 +0100 |
commit | 1751960338fc7a08fec438a9b53c78118a35063a (patch) | |
tree | 101d8a45a35723ba6c4c9775b1ebcb494c3be7b6 /src/shared/tower.rs | |
parent | fff6538cde0bb83c9f0166b60f7f2ff5a5b15f8d (diff) |
feat: add tower range/ target indicator
Diffstat (limited to 'src/shared/tower.rs')
-rw-r--r-- | src/shared/tower.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/shared/tower.rs b/src/shared/tower.rs index 4601112..28ccc13 100644 --- a/src/shared/tower.rs +++ b/src/shared/tower.rs @@ -62,12 +62,14 @@ impl TowerBundle { } } -#[derive(Component, Default)] +#[derive( + Message, Component, Default, Clone, Copy, Serialize, Deserialize, PartialEq, Eq, Debug, +)] pub struct Tower { pub last_target: Option<LastTarget>, } -#[derive(Component, Clone, Copy)] +#[derive(Component, Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct LastTarget { pub entity: Entity, pub player_id: PlayerId, |