mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
62b91eb01b
Former-commit-id: 5d96983a385bb77a2876aa7439158252b7e2f0fc
19 lines
355 B
Rust
19 lines
355 B
Rust
use crate::comp;
|
|
|
|
#[derive(Clone, Debug, Serialize, Deserialize)]
|
|
pub enum ClientMsg {
|
|
Connect {
|
|
player: comp::Player,
|
|
character: Option<comp::Character>,
|
|
},
|
|
Ping,
|
|
Pong,
|
|
Chat(String),
|
|
PlayerPhysics {
|
|
pos: comp::phys::Pos,
|
|
vel: comp::phys::Vel,
|
|
dir: comp::phys::Dir,
|
|
},
|
|
Disconnect,
|
|
}
|