aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared/tower.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/tower.rs')
-rw-r--r--src/shared/tower.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/shared/tower.rs b/src/shared/tower.rs
index a21048a..4601112 100644
--- a/src/shared/tower.rs
+++ b/src/shared/tower.rs
@@ -64,5 +64,11 @@ impl TowerBundle {
#[derive(Component, Default)]
pub struct Tower {
- pub last_target_player_id: Option<PlayerId>,
+ pub last_target: Option<LastTarget>,
+}
+
+#[derive(Component, Clone, Copy)]
+pub struct LastTarget {
+ pub entity: Entity,
+ pub player_id: PlayerId,
}