aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol.rs
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2024-03-14 16:10:11 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2024-03-15 02:50:59 +0100
commit20fd6cec7ea518a98a4f74f746293eb77c170267 (patch)
tree35fbe74d020f86cc1a1176340ecdba0433b0bbd6 /src/protocol.rs
parent02750384df3142bda62a7ce0feb08d115aa6af29 (diff)
feat: shooting
Diffstat (limited to 'src/protocol.rs')
-rw-r--r--src/protocol.rs5
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)]