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