H7TownMagicGuild
Class in MMH7Game · MMH7Game.H7TownMagicGuild · native, perobjectconfig
Object › H7TownBuilding › H7TownMagicGuild
Using it from Lua
h7.find_all("H7TownMagicGuild") -- live instances
h7.find_class("MMH7Game.H7TownMagicGuild") -- the class
h7.hook("MMH7Game.H7TownMagicGuild.AddSpell", fn)
Constants
| Name | Value |
MaxSpellsRankExpert | 4 |
MaxSpellsRankMaster | 2 |
MaxSpellsRankNovice | 6 |
MaxSpellsRankUnskilled | 7 |
Properties
Functions
| Name | Declaration |
AddSpell | private final native function AddSpell(H7HeroAbility Spell) |
GetMaxSpellCount | function int GetMaxSpellCount() |
GetRank | function H7StructsAndEnumsNative.ESkillRank GetRank() |
GetSpells | function array<H7HeroAbility> GetSpells() |
GetSpellSetStatus | function bool GetSpellSetStatus() |
HasSeenLibrarySpells | function bool HasSeenLibrarySpells() |
InitMaxSpellCount | private final native function InitMaxSpellCount() |
InitSpells | native function InitSpells(array<H7HeroAbility> predefinedSpells, H7Town Town) |
PostSerialize | event PostSerialize() |
SelectRandomGuildSpecialisation | function SelectRandomGuildSpecialisation(H7Town Town) |
SetFaction | function SetFaction(H7Faction Faction) |
SetMageGuildSpecialisation | function SetMageGuildSpecialisation(H7StructsAndEnumsNative.EAbilitySchool electedSchool, H7Town Town) |
SetRandomGuildSpecialisation | function SetRandomGuildSpecialisation(H7StructsAndEnumsNative.EAbilitySchool school, H7Town Town) |
SetSeenByPlayer | function SetSeenByPlayer(bool val) |
SetSeenLibrarySpells | function SetSeenLibrarySpells(bool val) |
WasSeenByPlayer | function bool WasSeenByPlayer() |
Inherited
| From | Members |
| H7TownBuilding | Properties: mAbility, mAbilityManager, mAiBaseUtility, mAlternate, mCosts, mCostsSkirmish, mDesc, mEventManager, mIcon, mIsUnique, mName, mNameInst, mPopup, mPrerequisites, mProduction, mProductionSkirmish, mRequiredLevel, mTown, mTownAsset, mTownAssets, mUpgrade Functions: ApplyDamage, CostResourceCompareGUI, DataChanged, DelIcon, DelTownAsset, DelTownAssets, Deserialize, GetAbility, GetAbilityManager, GetAlternate, GetAlternateBothways, GetArchetypeDescription, GetBuffManager, GetBuildingBaseUtility, GetCost, GetDesc, GetEffectManager, GetEntityType, GetEventManager, GetFlashIconPath, GetFlashInfoIconPath, GetGridPosition, GetHitPoints, GetID, GetIDString, GetIncome, GetIncomeForResource, GetName, GetPlayer, GetPopup, GetPrerequisiteLevel, GetPrerequisites, GetResistanceModifierFor, GetStackSize, GetTown, GetTownAsset, GetTownAssets, GetUpgrade, HasTownAssetLoaded, HasTownAssetsLoaded, InitTownBuilding, IsArchetype, IsUnique, LocalizeName, OnBeginDay, PostSerialize, Serialize, SetPrerequisiteLevel, SetTown, ShouldDisplayIncome, TriggerEvents |
| Object | 13 properties, 308 functions |