equal
deleted
inserted
replaced
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 { |