Пользовательские дополнения

На главную


spellLib.GetValuedObject( spellId )

Возвращает новый экземпляр ValuedObject для заклинания.

Тип объекта - VAL_OBJ_TYPE_SPELL.
Текст - имя заклинания.
Изображение - иконка заклинания.
Id: SpellId - Id ресурса заклинания.

Замечание: поскольку ValuedObject это userdata, то Lua работает с ними по ссылке, а не по значению.

-- библиотека:
spellLib

-- объявление:
function GetValuedObject( spellId )

-- параметры:
spellId: ObjectId - Id ресурса заклинания

-- возвращаемые значения:
ValuedObject - экземпляр ValuedObject

-- примеры:
local spellId = spellInfo.id
local valuedObject = spellLib.GetValuedObject( spellId )

Search: "CategoryLuaApi" "CategoryValuedText"

CategoryValuedText
EventValuedObjectClicked
EventValuedObjectDoubleClicked
EventValuedObjectMouseOver
FunctionAvatarGetAbilityValuedObject
FunctionAvatarGetBuffValuedObject
FunctionCommonCreateValuedObject
FunctionCommonCreateValuedText
FunctionCommonExtractWStringFromValuedText
FunctionCommonFormatFloat
FunctionCommonFormatInt
FunctionCommonFormatNumber
FunctionCommonGetApiType
FunctionCommonIsEmptyValuedText
FunctionCommonIsValuedObject
FunctionCommonIsValuedText
FunctionCommonSetTextValues
FunctionItemLibGetValuedObject
FunctionMountGetValuedObject
FunctionSpellLibGetValuedObject
FunctionTextViewSetValuedText
FunctionUnitGetPlayerValuedObject
FunctionUnitGetUnitValuedObject
FunctionValuedObjectGetId
FunctionValuedObjectGetImage
FunctionValuedObjectGetShardName
FunctionValuedObjectGetText
FunctionValuedObjectGetType
FunctionValuedTextClearValues
FunctionValuedTextCreateCopy
FunctionValuedTextIsEmpty
FunctionValuedTextSetClassVal
FunctionValuedTextSetFormat
FunctionValuedTextSetPlainText
FunctionValuedTextSetTextValues
FunctionValuedTextSetVal
FunctionValuedTextToWString
TypeValuedObject
TypeValuedText


CategoryLuaApi CategoryFunction CategorySpellLib CategoryValuedText

На главную