veloren/common/src/msg/client.rs
2019-06-16 19:59:12 +02:00

31 lines
591 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::Body,
},
Controller(comp::Controller),
RequestState(ClientState),
SetViewDistance(u32),
Ping,
Pong,
Chat(String),
PlayerAnimation(comp::AnimationInfo),
PlayerPhysics {
pos: comp::Pos,
vel: comp::Vel,
ori: comp::Ori,
},
TerrainChunkRequest {
key: Vec2<i32>,
},
Disconnect,
}