cleaner query

This commit is contained in:
2022-08-16 11:06:17 +02:00
parent 615d9d7080
commit 5ddbf6fc7d
3 changed files with 20 additions and 36 deletions

View File

@@ -51,21 +51,10 @@ pub enum ServerChannel {
#[derive(Debug, Serialize, Deserialize, Component)]
pub enum ServerMessages {
PlayerCreate {
entity: Entity,
id: u64,
},
PlayerRemove {
id: u64,
},
SpawnProjectile {
entity: Entity,
origin: Vec2,
direction: Vec2,
},
DespawnProjectile {
entity: Entity,
},
PlayerCreate { entity: Entity, id: u64 },
PlayerRemove { id: u64 },
SpawnProjectile { entity: Entity },
DespawnProjectile { entity: Entity },
}
#[derive(Debug, Serialize, Deserialize, Default)]