fixed flickering on projectile spawn. send origin

This commit is contained in:
2022-08-16 21:03:03 +02:00
parent 614092a8eb
commit 05ca78229f
3 changed files with 19 additions and 14 deletions

View File

@@ -57,7 +57,7 @@ pub enum ServerChannel {
pub enum ServerMessages {
PlayerCreate { entity: Entity, id: u64 },
PlayerRemove { id: u64 },
SpawnProjectile { entity: Entity },
SpawnProjectile { entity: Entity, origin: Vec2 },
DespawnProjectile { entity: Entity },
}