(&mut self, planet: Planet)
| 745 | } |
| 746 | |
| 747 | fn get_planet_mut(&mut self, planet: Planet) -> &mut PlanetInfo { |
| 748 | if let Some(planet_info) = self.planet_states.get_mut(&planet) { |
| 749 | planet_info |
| 750 | } else { |
| 751 | unreachable!(); |
| 752 | } |
| 753 | } |
| 754 | |
| 755 | pub(crate) fn get_team(&self, team: Team) -> &TeamInfo { |
| 756 | if let Some(team_info) = self.team_states.get(&team) { |
no outgoing calls