Updates the structure as if it has loaded a unit inside its garrison. Adds the unit ID to the garrison.
(&mut self, id: UnitID)
| 963 | /// Updates the structure as if it has loaded a unit inside its garrison. |
| 964 | /// Adds the unit ID to the garrison. |
| 965 | pub(crate) fn load(&mut self, id: UnitID) { |
| 966 | self.garrison.push(id); |
| 967 | } |
| 968 | |
| 969 | /// Returns OK if the structure can unload a unit. The structure must be on |
| 970 | /// a planet and it must have at least one unit to unload. Does not check |
no outgoing calls