(&mut self, index: usize, binding: PlayerBinding)
| 260 | |
| 261 | /// Return a mutable player slot, creating empty slots as needed. |
| 262 | #[inline] |
| 263 | pub fn player_mut(&mut self, index: usize) -> &mut PlayerState { |
| 264 | if self.players.len() <= index { |
| 265 | self.players.resize_with(index + 1, PlayerState::new); |
| 266 | } |
| 267 | &mut self.players[index] |
no test coverage detected