Jass:String2OrderIdBJ
Aus Mappedia
| Funktion: String2OrderIdBJ | |
|---|---|
| Parameter: | string |
| Rückgabewert: | integer |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function String2OrderIdBJ takes string orderIdString returns integer local integer orderId // Check to see if it's a generic order. set orderId = OrderId(orderIdString) if (orderId != 0) then return orderId endif // Check to see if it's a (train) unit order. set orderId = UnitId(orderIdString) if (orderId != 0) then return orderId endif // Unrecognized - return 0 return 0 endfunction
Parameter
| Typ | Name | Beschreibung |
|---|---|---|
| string | orderIdString |
