rust/hedgewars-server/src/server/core.rs
changeset 14686 9f98086de1b6
parent 14674 b87c71ccd17d
child 14693 6a2e13e36b7f
equal deleted inserted replaced
14685:669eb45bda72 14686:9f98086de1b6
   103 
   103 
   104     pub fn send_msg(&mut self, client_id: ClientId, message: PendingMessage) {
   104     pub fn send_msg(&mut self, client_id: ClientId, message: PendingMessage) {
   105         self.send(client_id, &message.destination, message.message)
   105         self.send(client_id, &message.destination, message.message)
   106     }
   106     }
   107 
   107 
   108     pub fn react(&mut self, client_id: ClientId, actions: Vec<actions::Action>) {
       
   109         for action in actions {
       
   110             actions::run_action(self, client_id, action);
       
   111         }
       
   112     }
       
   113 
       
   114     pub fn lobby(&self) -> &HWRoom {
   108     pub fn lobby(&self) -> &HWRoom {
   115         &self.rooms[self.lobby_id]
   109         &self.rooms[self.lobby_id]
   116     }
   110     }
   117 
   111 
   118     pub fn has_room(&self, name: &str) -> bool {
   112     pub fn has_room(&self, name: &str) -> bool {