Skip to content

H7TownGuardBuilding

Class in MMH7Game · MMH7Game.H7TownGuardBuilding · perobjectconfig

Object › H7TownBuilding › H7TownGuardBuilding

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

Properties

NameTypeNotes
mChampionsH7Creatureprotected
mCoreFootmenH7Creatureprotected
mCoreShootersH7Creatureprotected
mEliteNonShootersH7Creatureprotected
mEliteShootersH7Creatureprotected
mFortificationLevelintprotected
mLocalGuardDataH7LocalGuardDataprotected

Functions

NameDeclaration
downgradeTownGuardfunction array<H7DwellingCreatureData> downgradeTownGuard(array<H7DwellingCreatureData> oldTownGuard, optional H7TownGuardGrowthEnhancer guardEnhancer)
GetCorrectedTownGuardfunction array<H7DwellingCreatureData> GetCorrectedTownGuard(array<H7DwellingCreatureData> oldTownGuard, H7Faction Faction)
GetCreatureClassfunction H7Creature GetCreatureClass(H7StructsAndEnumsNative.ECreatureTier Tier, optional bool ranged = false, optional bool Support = false)
GetDefaultTownGuardfunction array<H7DwellingCreatureData> GetDefaultTownGuard()
GetLevelfunction int GetLevel()

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