veloren/common/src/msg/client.rs

32 lines
600 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 {
name: String,
body: comp::Body,
},
Attack,
Respawn,
RequestState(ClientState),
SetViewDistance(u32),
Ping,
Pong,
Chat(String),
PlayerAnimation(comp::AnimationInfo),
PlayerPhysics {
pos: comp::phys::Pos,
vel: comp::phys::Vel,
ori: comp::phys::Ori,
},
TerrainChunkRequest {
key: Vec2<i32>,
},
Disconnect,
}