EUO2Type
Converts an EasyUO-style type string to a Stealth numeric type.
EUO is a string containing uppercase letters and numbers (EasyUO format).
Returns 0 if the conversion failed.
In Python, this method is named EUO2StealthType.
Преобразует строку типа в формате EasyUO в числовой тип Stealth.
Возвращает 0, если преобразование не удалось.
В Python метод называется EUO2StealthType.
function EUO2Type(EUO: String): Word;
def EUO2StealthType(euo: str) -> int: ...
var
ItemType: Word;
begin
ItemType := EUO2Type('DWJ');
AddToSystemJournal('Converted type: ' + IntToStr(ItemType));
end.
item_type = EUO2StealthType('DWJ')
AddToSystemJournal(f'Converted type: {item_type}')