Method GetUnitCount
GetUnitCount(UnitType)
Gets the number of units of a specified type.
Declaration
[OperationContract]
[AvailableSinceVersion(7, 6, 0, 0)]
int GetUnitCount(UnitType inUnitType)
Parameters
| Type | Name | Description |
|---|---|---|
| UnitType | inUnitType | Unit type. |
Returns
| Type | Description |
|---|---|
| int | Number of available units. |
Remarks
The indexes of the available units go from 0 to Count-1.
This method is available since v7.6.