mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
e9027c6433
Former-commit-id: 56c21f72bc5b53635d6fdf00c99eb34df3b448c9
24 lines
511 B
Rust
24 lines
511 B
Rust
use vek::*;
|
|
use super::ClientState;
|
|
use crate::comp;
|
|
|
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
|
pub enum ClientMsg {
|
|
Register { player: comp::Player },
|
|
Character(comp::Character),
|
|
RequestState(ClientState),
|
|
Ping,
|
|
Pong,
|
|
Chat(String),
|
|
PlayerAnimation(comp::character::AnimationHistory),
|
|
PlayerPhysics {
|
|
pos: comp::phys::Pos,
|
|
vel: comp::phys::Vel,
|
|
dir: comp::phys::Dir,
|
|
},
|
|
TerrainChunkRequest {
|
|
key: Vec3<i32>,
|
|
},
|
|
Disconnect,
|
|
}
|