UnitUtils.IsUnit
Description:
Checks whether a ForgeTypeId identifies a unit.
Checks whether a ForgeTypeId identifies a unit.
Remarks:
A ForgeTypeId identifies a unit if it corresponds to a valid DisplayUnitType value according to UnitUtils.IsValidDisplayUnit(DisplayUnitType) and UnitUtils.GetUnitTypeId(DisplayUnitType).
A ForgeTypeId identifies a unit if it corresponds to a valid DisplayUnitType value according to UnitUtils.IsValidDisplayUnit(DisplayUnitType) and UnitUtils.GetUnitTypeId(DisplayUnitType).
public static bool IsUnit(
ForgeTypeId unitTypeId
)
-
unitTypeIdThe identifier to check.
Return Value
bool
True if the ForgeTypeId identifies a unit, false otherwise.
-
A non-optional argument was NULL