UnitUtils.IsValidUnit
Description:
Checks whether a unit is valid for a given spec.
Checks whether a unit is valid for a given spec.
public static bool IsValidUnit(
ForgeTypeId specTypeId,
ForgeTypeId unitTypeId
)
-
specTypeIdIdentifier of the spec.
-
unitTypeIdIdentifier of the unit to check.
Return Value
bool
True if the unit is valid, false otherwise.
-
specTypeId is not a spec identifier. See UnitUtils.IsSpec(ForgeTypeId) and UnitUtils.GetSpecTypeId(UnitType).
-
A non-optional argument was NULL