diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-03-14 16:10:11 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-03-15 02:50:59 +0100 |
commit | 20fd6cec7ea518a98a4f74f746293eb77c170267 (patch) | |
tree | 35fbe74d020f86cc1a1176340ecdba0433b0bbd6 /src/protocol.rs | |
parent | 02750384df3142bda62a7ce0feb08d115aa6af29 (diff) |
feat: shooting
Diffstat (limited to 'src/protocol.rs')
-rw-r--r-- | src/protocol.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/protocol.rs b/src/protocol.rs index 86d1fa0..7672489 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -1,4 +1,6 @@ +use crate::shared::cooldown::*; use crate::shared::imperative::*; +use crate::shared::projectile::*; use crate::shared::*; use bevy::prelude::*; use lightyear::prelude::*; @@ -26,6 +28,9 @@ pub enum Components { PlayerId(PlayerId), PlayerPosition(PlayerPosition), PlayerColor(PlayerColor), + Projectile(Projectile), + ProjectilePosition(ProjectilePosition), + Cooldown(Cooldown), } #[derive(Channel)] |