Skip to content

H7TownDwelling

Class in MMH7Game · MMH7Game.H7TownDwelling · native, perobjectconfig

Object › H7TownBuilding › H7TownDwelling

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

Properties

NameTypeNotes
mCreaturePoolH7DwellingCreatureDataprotected
mCreaturePoolSkirmishH7DwellingCreatureDataprotected
mDailyGrowthBufferfloatprotected
mGrowthCycleintprotected
mIsSabotagedboolprotected

Functions

NameDeclaration
CarryReserveForUpgradefunction CarryReserveForUpgrade(int baseBuildingReserve)
GetAddBoniOnStatByIDfunction float GetAddBoniOnStatByID(H7StructsAndEnumsNative.EStat desiredStat)
GetBaseStatByIDfunction float GetBaseStatByID(H7StructsAndEnumsNative.EStat desiredStat)
GetCreatureIncomefunction int GetCreatureIncome()
GetCreaturePoolfunction H7DwellingCreatureData GetCreaturePool()
GetModifiedStatByIDfunction float GetModifiedStatByID(H7StructsAndEnumsNative.EStat desiredStat)
GetModifiersByIDnative function GetModifiersByID(out array<H7MeModifiesStat> outStats, H7StructsAndEnumsNative.EStat desiredStat, optional H7StructsAndEnumsNative.EOperationType checkForOperation1 = 255, optional H7StructsAndEnumsNative.EOperationType checkForOperation2 = 255, optional bool nextRound, optional H7Creature specificCreature)
GetMultiBoniOnStatByIDfunction float GetMultiBoniOnStatByID(H7StructsAndEnumsNative.EStat desiredStat)
GetRecruitableCreaturesfunction array<H7Creature> GetRecruitableCreatures()
HireUnitsfunction HireUnits(int Count)
InitTownBuildingfunction InitTownBuilding(H7Town Town)
isSabotagedfunction bool isSabotaged()
ModifyReservefunction ModifyReserve(float Mu)
ProduceUnitsfunction ProduceUnits(int bonus)
SetCreaturePoolfunction SetCreaturePool(H7DwellingCreatureData pool)
SetSabotagedfunction SetSabotaged(bool isSabotaged)

Default values

mPopup=ETownPopup.POPUP_RECRUIT

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