some tokens stuff (ye i started to work on the map, also i 'fixed' the context menu for msgs but still needs to be impl-ed)
This commit is contained in:
parent
97475599a7
commit
be6dd7c0e4
13 changed files with 296 additions and 76 deletions
|
@ -15,7 +15,11 @@ pub enum Request {
|
|||
Message(ChatMessage),
|
||||
GetChatHistory { amount: usize, from: usize },
|
||||
GetLastMessages { amount: usize, },
|
||||
GetTokens,
|
||||
SpawnToken { x: i32, y: i32, img_path: String },
|
||||
MoveToken { token_id: usize, x: i32, y: i32 },
|
||||
Quit,
|
||||
Kick(String),
|
||||
Shutdown
|
||||
}
|
||||
#[derive(Serialize, Clone)]
|
||||
|
@ -25,6 +29,8 @@ pub enum Response {
|
|||
Login(login::LoginResult),
|
||||
Message(ChatMessage),
|
||||
GetChatHistory(Vec<ChatMessage>),
|
||||
MoveToken { token_id: usize, x: i32, y: i32 },
|
||||
SpawnToken { token_id: usize, x: i32, y: i32, img: String },
|
||||
Quit { id: String },
|
||||
Shutdown,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue