H7TownUtilityUnitDwelling
Class in MMH7Game · MMH7Game.H7TownUtilityUnitDwelling · perobjectconfig
Object › H7TownBuilding › H7TownUtilityUnitDwelling
Using it from Lua
h7.find_all("H7TownUtilityUnitDwelling") -- live instances
h7.find_class("MMH7Game.H7TownUtilityUnitDwelling") -- the class
h7.hook("MMH7Game.H7TownUtilityUnitDwelling.CanAffordWarUnit", fn)
Properties
Functions
| Name | Declaration |
CanAffordWarUnit | function bool CanAffordWarUnit(H7AdventureArmy Army) |
CanHireWarUnit | function bool CanHireWarUnit(H7AdventureArmy Army) |
CanPlayerAffordWarUnit | function bool CanPlayerAffordWarUnit(H7Player Player) |
GetTownArmies | function array<H7AdventureArmy> GetTownArmies() |
GetWarunitTemplate | function H7EditorWarUnit GetWarunitTemplate() |
HireWarUnit | function bool HireWarUnit(H7AdventureArmy Army) |
InitTownBuilding | function InitTownBuilding(H7Town Town) |
Default values
mPopup=ETownPopup.POPUP_WARFARE
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 |