Skip to content

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

NameValue
MaxSpellsRankExpert4
MaxSpellsRankMaster2
MaxSpellsRankNovice6
MaxSpellsRankUnskilled7

Properties

NameTypeNotes
mFactionH7Factionprotected
mMagicGuildSpecPossibilitiesarray<H7StructsAndEnumsNative.EAbilitySchool>protected
mMaxSpellCountintprotected
mPossibleSpellsarray<H7HeroAbility>protected
mPossibleSpellsAMarray<H7HeroAbility>protected
mRankH7StructsAndEnumsNative.ESkillRankprotected
mRemovedSpellBufferarray<H7HeroAbility>protected
mSeenByPlayerboolprotected
mSeenLibrarySpellsboolprotected
mSpellsarray<H7HeroAbility>protected
mSpellsRefsarrayprotected
mSpellsSetboolprotected
mWasPostSerializedbooltransient, protected

Functions

NameDeclaration
AddSpellprivate final native function AddSpell(H7HeroAbility Spell)
GetMaxSpellCountfunction int GetMaxSpellCount()
GetRankfunction H7StructsAndEnumsNative.ESkillRank GetRank()
GetSpellsfunction array<H7HeroAbility> GetSpells()
GetSpellSetStatusfunction bool GetSpellSetStatus()
HasSeenLibrarySpellsfunction bool HasSeenLibrarySpells()
InitMaxSpellCountprivate final native function InitMaxSpellCount()
InitSpellsnative function InitSpells(array<H7HeroAbility> predefinedSpells, H7Town Town)
PostSerializeevent PostSerialize()
SelectRandomGuildSpecialisationfunction SelectRandomGuildSpecialisation(H7Town Town)
SetFactionfunction SetFaction(H7Faction Faction)
SetMageGuildSpecialisationfunction SetMageGuildSpecialisation(H7StructsAndEnumsNative.EAbilitySchool electedSchool, H7Town Town)
SetRandomGuildSpecialisationfunction SetRandomGuildSpecialisation(H7StructsAndEnumsNative.EAbilitySchool school, H7Town Town)
SetSeenByPlayerfunction SetSeenByPlayer(bool val)
SetSeenLibrarySpellsfunction SetSeenLibrarySpells(bool val)
WasSeenByPlayerfunction bool WasSeenByPlayer()

Inherited

FromMembers
H7TownBuildingProperties: 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
Object13 properties, 308 functions