Method SearchUnit
SearchUnit(UnitType, string)
Searches for a unit of a specified type and symbol.
Declaration
[OperationContract]
[AvailableSinceVersion(7, 6, 0, 0)]
int SearchUnit(UnitType inUnitType, string inSymbol)
Parameters
| Type | Name | Description |
|---|---|---|
| UnitType | inUnitType | Unit type. |
| string | inSymbol | Unit symbol in English. |
Returns
| Type | Description |
|---|---|
| int | Index of the unit found or -1 if not found. |
Remarks
This method is available since v7.6.