Utilities

Enum

1
native func EnumGetMax(type: CName) -> Int64
2
native func EnumGetMin(type: CName) -> Int64
3
4
native func EnumValueToString(const enumStr: script_ref<String>, enumValue: Int64) -> String
5
native func EnumValueFromString(const enumStr: script_ref<String>, const enumValue: script_ref<String>) -> Int64
6
7
native func EnumValueToName(enumName: CName, enumValue: Int64) -> CName
8
native func EnumValueFromName(enumName: CName, enumValue: CName) -> Int64
Copied!

Localization

1
native func LocKeyToString(hashKey: CName) -> String
2
native func GetLocalizedText(const textKey: script_ref<String>) -> String
3
native func GetLocalizedTextGanderDepened(const textKey: script_ref<String>, variantIsFemale: Bool) -> String
4
native func GetLocalizedTextGanderDepenedByKey(hashKey: CName, variantIsFemale: Bool) -> String
5
native func GetLocalizedTextByKey(hashKey: CName) -> String
6
native func GetLocalizedItemNameByString(hashKey: CName) -> String
7
native func GetLocalizedItemNameByCName(hashKey: CName) -> String
Copied!
1
native func TSF_All(mask: TSFMV) -> TargetSearchFilter
2
native func TSF_Any(mask: TSFMV) -> TargetSearchFilter
3
native func TSF_Not(mask: TSFMV) -> TargetSearchFilter
4
native func TSF_And(tsf1: TargetSearchFilter, tsf2: TargetSearchFilter, opt tsf3: TargetSearchFilter, opt tsf4: TargetSearchFilter) -> TargetSearchFilter
5
native func TSF_Or(tsf1: TargetSearchFilter, tsf2: TargetSearchFilter, opt tsf3: TargetSearchFilter, opt tsf4: TargetSearchFilter) -> TargetSearchFilter
Copied!