Skip to content

H7HeroEquipment

Class in MMH7Game · MMH7Game.H7HeroEquipment · native

Object › H7HeroEquipment

Using it from Lua
h7.find_all("H7HeroEquipment")            -- live instances
h7.find_class("MMH7Game.H7HeroEquipment")   -- the class
h7.hook("MMH7Game.H7HeroEquipment.CleanItemsAfterCombat", fn)

Properties

NameTypeNotes
mCapeH7HeroItemprotected
mCapeIDintprotected
mCapeRefstringprotected
mChestArmorH7HeroItemprotected
mChestArmorIDintprotected
mChestArmorRefstringprotected
mGlovesH7HeroItemprotected
mGlovesIDintprotected
mGlovesRefstringprotected
mHelmetH7HeroItemprotected
mHelmetIDintprotected
mHelmetRefstringprotected
mNecklaceH7HeroItemprotected
mNecklaceIDintprotected
mNecklaceRefstringprotected
mOwnerH7EditorHeroprotected
mRing1H7HeroItemprotected
mRing1IDintprotected
mRing1Refstringprotected
mShoesH7HeroItemprotected
mShoesIDintprotected
mShoesRefstringprotected
mWeaponH7HeroItemprotected
mWeaponIDintprotected
mWeaponRefstringprotected

Functions

NameDeclaration
CleanItemsAfterCombatnative function CleanItemsAfterCombat()
CountItemnative function int CountItem(H7HeroItem Item, optional bool checkForInstance)
Deserializefunction Deserialize(JsonObject Data)
DeserializeReferencesfunction DeserializeReferences(JsonObject Data, SaveGameState Savegame)
DumpCurrentStatefunction DumpCurrentState()
GetCapefunction H7HeroItem GetCape()
GetChestArmorfunction H7HeroItem GetChestArmor()
GetGlovesfunction H7HeroItem GetGloves()
GetHelmetfunction H7HeroItem GetHelmet()
GetItemByIDfunction H7HeroItem GetItemByID(int ItemId, optional bool suppressWarning)
GetItemByTypeevent H7HeroItem GetItemByType(H7StructsAndEnumsNative.EItemType Type)
GetItemsAsArraynative function GetItemsAsArray(out array<H7HeroItem> Items)
GetNecklacefunction H7HeroItem GetNecklace()
GetResourceProducingItemsnative function GetResourceProducingItems(out array<H7EffectSpecialAddResources> produc)
GetRing1function H7HeroItem GetRing1()
GetRingSlotfunction string GetRingSlot(H7HeroItem Item)
GetShoesfunction H7HeroItem GetShoes()
GetWeaponfunction H7HeroItem GetWeapon()
HasItemEquippednative function bool HasItemEquipped(H7HeroItem Item, optional bool checkForInstance)
HasSetItemsEquippednative function int HasSetItemsEquipped(H7ItemSet Set)
Initfunction Init(optional bool fromSave = false)
IsArchetypefunction bool IsArchetype()
PostSerializeevent PostSerialize()
raiseEventevent raiseEvent(H7StructsAndEnumsNative.ETrigger triggerEvent, bool simulate, optional H7EventContainerStruct container)
RemoveItemfunction RemoveItem(H7HeroItem Item)
RemoveItemByIDfunction RemoveItemByID(int ItemId)
RemoveItemCompletefunction RemoveItemComplete(H7HeroItem Item)
Serializefunction JsonObject Serialize()
SetCapefunction SetCape(H7HeroItem Item)
SetChestArmorfunction SetChestArmor(H7HeroItem Item)
SetEquipmentOwnerfunction SetEquipmentOwner(H7EditorHero Owner)
SetGlovesfunction SetGloves(H7HeroItem Item)
SetHelmetfunction SetHelmet(H7HeroItem Item)
SetItemfunction SetItem(H7HeroItem Item, optional bool updateGui = false, optional bool TriggerEvents = true)
SetItemCompleteevent SetItemComplete(H7HeroItem Item, optional bool TriggerEvents = true)
SetNecklacefunction SetNecklace(H7HeroItem Item)
SetRing1function SetRing1(H7HeroItem Item)
SetShoesfunction SetShoes(H7HeroItem Item)
SetWeaponfunction SetWeapon(H7HeroItem Item)
UnequipAllfunction UnequipAll()

Inherited

FromMembers
Object13 properties, 308 functions