Add a rocket landing on this round.
(&mut self, round: Rounds, landing: RocketLanding)
| 54 | |
| 55 | /// Add a rocket landing on this round. |
| 56 | pub(crate) fn add_landing(&mut self, round: Rounds, landing: RocketLanding) { |
| 57 | if !self.landings.contains_key(&round) { |
| 58 | self.landings.insert(round, vec![]); |
| 59 | } |
| 60 | |
| 61 | self.landings.get_mut(&round) |
| 62 | .expect("landing round should exist") |
| 63 | .push(landing); |
| 64 | } |
| 65 | |
| 66 | /// Add many rocket landings on this round. |
| 67 | #[cfg(test)] |
no outgoing calls