veloren/common/src/msg/client.rs
Joshua Barretto 761c6e9cf8 Switched to actor system
Former-commit-id: d2a482f6209aff7aaa4e747e35ce4a7c8a79cdfc
2019-05-13 11:06:58 +01:00

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,
}