The max capacity of a structure. InappropriateUnitType - the unit is not a structure.
(&self)
| 916 | /// |
| 917 | /// * InappropriateUnitType - the unit is not a structure. |
| 918 | pub fn structure_max_capacity(&self) -> Result<usize, GameError> { |
| 919 | self.ok_if_structure()?; |
| 920 | Ok(self.max_capacity) |
| 921 | } |
| 922 | |
| 923 | /// Returns the units in the structure's garrison. |
| 924 | /// |