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

На главную


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
FunctionAvatarGetGlossaryDescription
FunctionCommonCreateValuedObject
FunctionCommonCreateValuedText
FunctionCommonFormatFloat
FunctionCommonFormatInt
FunctionCommonFormatNumber
FunctionCommonIsEmptyValuedText
FunctionCommonIsValuedObject
FunctionCommonIsValuedText
FunctionItemLibGetValuedObject
FunctionMountGetValuedObject
FunctionSpellLibGetValuedObject
FunctionTextViewSetValuedText
FunctionUnitGetPlayerValuedObject
FunctionUnitGetUnitValuedObject
FunctionValuedObjectGetId
FunctionValuedObjectGetImage
FunctionValuedObjectGetShardName
FunctionValuedObjectGetText
FunctionValuedObjectGetType
FunctionValuedTextClearValues
FunctionValuedTextCreateCopy
FunctionValuedTextHasObjects
FunctionValuedTextIsEmpty
FunctionValuedTextSetClassVal
FunctionValuedTextSetFormat
FunctionValuedTextSetPlainText
FunctionValuedTextSetTagAttributes
FunctionValuedTextSetTextValues
FunctionValuedTextSetVal
FunctionValuedTextToWString
TypeValuedObject
TypeValuedText


CategoryLuaApi CategoryFunction CategorySpellLib CategoryValuedText

На главную