use vek::*; use crate::terrain::TerrainChunk; use super::EcsPacket; #[derive(Clone, Serialize, Deserialize)] pub enum ServerMsg { Handshake { ecs_state: sphynx::StatePackage, player_entity: u64, }, Shutdown, Ping, Pong, Chat(String), SetPlayerEntity(u64), EcsSync(sphynx::SyncPackage), TerrainChunkUpdate { key: Vec3, chunk: TerrainChunk, }, }