Returns the units in the structure's garrison. InappropriateUnitType - the unit is not a structure.
(&self)
| 924 | /// |
| 925 | /// * InappropriateUnitType - the unit is not a structure. |
| 926 | pub fn structure_garrison(&self) -> Result<Vec<UnitID>, GameError> { |
| 927 | self.ok_if_structure()?; |
| 928 | Ok(self.garrison.clone()) |
| 929 | } |
| 930 | |
| 931 | /// Updates this structure as though a worker has just built it. |
| 932 | pub(crate) fn be_built(&mut self, build_health: u32) { |
no test coverage detected