veloren/common/src/msg/client.rs

26 lines
524 B
Rust
Raw Normal View History

use super::ClientState;
use crate::comp;
use vek::*;
#[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,
}