veloren/common/src/msg/client.rs

33 lines
644 B
Rust
Raw Normal View History

use super::ClientState;
use crate::comp;
use crate::terrain::block::Block;
use vek::*;
#[derive(Debug, Clone, Serialize, Deserialize)]
pub enum ClientMsg {
Register {
player: comp::Player,
},
Character {
name: String,
body: comp::Body,
},
2019-06-09 14:20:20 +00:00
Controller(comp::Controller),
RequestState(ClientState),
SetViewDistance(u32),
BreakBlock(Vec3<i32>),
PlaceBlock(Vec3<i32>, Block),
Ping,
Pong,
Chat(String),
PlayerPhysics {
pos: comp::Pos,
vel: comp::Vel,
ori: comp::Ori,
},
TerrainChunkRequest {
key: Vec2<i32>,
},
Disconnect,
}