Skip to content

H7Dwelling

Class in MMH7Game · MMH7Game.H7Dwelling · native, perobjectconfig

Object › Actor › SkeletalMeshActor › SkeletalMeshCinematicActor › SkeletalMeshActorMAT › H7EditorMapObject › H7AdventureObject › H7VisitableSite › H7AreaOfControlSite › H7AreaOfControlSiteVassal › H7Dwelling

Implements: H7ITooltipable

Subclasses: H7CustomNeutralDwelling, H7RandomDwelling

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

Properties

NameTypeNotes
mCreaturePoolarray<H7DwellingCreatureData>protected
mDailyGrowthBufferarrayprotected
mGrowthCycleintprotected
mIsProductivebool
mIsUpgradedboolprotected
mOverrideUpgradeCostboolprotected
mUpgradeCostarray<H7ResourceQuantity>protected

Functions

NameDeclaration
AiUpgradeCreaturesfunction AiUpgradeCreatures()
Conquerfunction Conquer(H7AdventureHero conqueror)
CreatureIsInPoolfunction bool CreatureIsInPool(H7Creature Creature)
creatureStrengthfunction int creatureStrength(H7RecruitmentInfo info1, H7RecruitmentInfo info2)
GetAddBoniOnStatByIDfunction float GetAddBoniOnStatByID(H7StructsAndEnumsNative.EStat desiredStat, H7Creature Creature)
GetBaseCreaturefunction H7Creature GetBaseCreature(string creatureName, out int indexSource)
GetBaseStatByIDfunction float GetBaseStatByID(H7StructsAndEnumsNative.EStat desiredStat, H7Creature Creature)
GetCreatureIncomefunction int GetCreatureIncome(H7Creature Creature)
GetCreaturePoolfunction array<H7DwellingCreatureData> GetCreaturePool()
GetDefaultUpgradeCostfunction array<H7ResourceQuantity> GetDefaultUpgradeCost()
GetEntityTypenative function H7StructsAndEnumsNative.EUnitType GetEntityType()
GetFreeStackSlotsfunction int GetFreeStackSlots()
GetGrowthBonusfunction int GetGrowthBonus(H7Creature Creature, optional out array<H7TooltipModifierInfo> Modifiers)
GetModifiedStatByIDfunction float GetModifiedStatByID(H7StructsAndEnumsNative.EStat desiredStat, H7Creature Creature)
GetModifiersByIDnative function GetModifiersByID(out array<H7MeModifiesStat> outStats, H7StructsAndEnumsNative.EStat desiredStat, optional H7StructsAndEnumsNative.EOperationType checkForOperation1 = 255, optional H7StructsAndEnumsNative.EOperationType checkForOperation2 = 255, optional H7Creature specificCreature)
GetMultiBoniOnStatByIDfunction float GetMultiBoniOnStatByID(H7StructsAndEnumsNative.EStat desiredStat, H7Creature Creature)
GetPossibleRecruitCountnative function int GetPossibleRecruitCount(H7Creature Creature, H7ResourceSet resourceSet, int maxCount)
GetRecruitAllBlockReasonfunction string GetRecruitAllBlockReason(optional int freeSlots = -1)
GetRecruitAllDatafunction array<H7RecruitmentInfo> GetRecruitAllData(optional bool checkGarrison = false, optional int freeSlots = -1, optional H7AdventureArmy aiArmy)
GetRecruitAllDataSubfunction array<H7RecruitmentInfo> GetRecruitAllDataSub(H7ResourceSet resourceSet, bool recruitBaseCreature)
GetTooltipDatafunction H7TooltipData GetTooltipData(optional bool extendedVersion)
GetUpgradeCostfunction array<H7ResourceQuantity> GetUpgradeCost()
GetUpgradeInfofunction array<H7ResourceQuantity> GetUpgradeInfo(bool isVisitingArmy, out int numOfUpgCreatures, optional H7BaseCreatureStack Creature = none, optional int slotID = -1, optional out array<H7ResourceQuantity> singleUpgCost, optional bool lockNum = false)
HandleOwnershipprotected function HandleOwnership(H7AdventureHero visitingHero)
HireUnitsfunction HireUnits(string creatureName, int Count)
InitAdventureObjectevent InitAdventureObject()
InitIsUpgradedfunction InitIsUpgraded(bool IsUpgraded)
isRecruitingUpgradedVersionAlreadyfunction bool isRecruitingUpgradedVersionAlready(array<H7RecruitmentInfo> filteredRecruitmentInfo, H7Creature Creature)
IsUpgradedfunction bool IsUpgraded()
OnVisitfunction OnVisit(out H7AdventureHero Hero)
ProducesUnitnative function bool ProducesUnit(H7Unit Unit)
ProduceUnitsfunction ProduceUnits()
Recruitfunction bool Recruit(string creatureName, int Count, optional out int TargetIndex)
RecruitAllfunction RecruitAll()
RecruitDirectfunction RecruitDirect(string creatureName, int Amount)
SetCreaturePoolfunction SetCreaturePool(array<H7DwellingCreatureData> pool)
SetProductivefunction SetProductive(bool productive)
Upgradefunction Upgrade(H7Player upgradingPlayer)
UpgradeCompletefunction UpgradeComplete(optional H7Player upgradingPlayer)
UpgradeUnitfunction UpgradeUnit(int slotID, bool isVisitingArmy, int Count)
UpgradeUnitAIfunction bool UpgradeUnitAI(H7AdventureArmy Army, H7BaseCreatureStack crStack, optional bool doSynchronise = true)
UpgradeUnitCompletefunction UpgradeUnitComplete(int slotID, bool isVisitingArmy, int Count)

Default values

mIsUnblockingEntrance=true
mMinimapIcon=Texture2D'H7TextureGUI.icon_Minimap_Dwelling'

Inherited

FromMembers
H7AreaOfControlSiteVassalProperties: mLord
Functions: GetLord, HandleOwnership, OnVisit, RenderDebugInfo, SpendPickupCostsOnVisit
H7AreaOfControlSiteProperties: mAiThreateningArmy, mAiThreatLevel, mCaravanArmy, mDisabledCreaturesInLocalGuard, mEditorArmy, mFaction, mFlag, mHasMinimapIcon, mHiddenBuilding, mIcon, mInInit, mLocalGuard, mLocalGuardFactions, mLocalGuardOverride, mOnRepairSound, mOnTakeOverSound, mOnVisitSound, mSightRadius, mSiteOwner, mUseXPStrength, mXPStrength
Functions: AddArrivedCaravan, CalculateThreat, CanSendCaravanTo, ChangeFlag, CheckPathToSite, ClearLocalGuardReserve, Conquer, CreateEmptyCaravan, CreateEmptyGarrison, DeleteCaravan, GetAiThreatLevel, GetArrivedCaravanByIndexReadOnly, GetArrivedCaravans, GetCaravanArmy, GetColor, GetFaction, GetFlag, GetFlashIconPath, GetFlashMinimapPath, GetFreeStackSlots, GetGarrisonArmy, GetGuardCapacityFor, GetGuardIncomeFor, GetGuardingArmy, GetHasMinimap, GetHeightPos, GetIcon, GetIconPath, GetInitState, GetLevel, GetLocalGuard, GetLocalGuardAsBaseCreatureStacks, GetMinimapIcon, GetPlayer, GetPlayerNumber, GetRecruitAllBlockReason, GetRecruitAllData, GetSite, GetStrengthValue, GetUpgradeInfo, HandleOwnership, HandleSightRadius, HasStandingLocalGuard, HasUncheckedCaravans, HasWaitingCaravans, Hide, InitAdventureObject, InitSiteOwner, IsCaravanEmpty, IsCreatureDisabledInLocalGuard, IsHiddenX, IsInScoutingRangeOfLocalPlayer, MergeArmies, MergeArmiesComplete, OnTerrainChange, OnVisit, PostSerialize, ProduceDayUnits, ProduceUnits, RemoveCaravanArmy, RenderDebugInfo, RequestUnloadCaravan, Reveal, SetAiThreatLevel, SetArrivedCaravanStacks, SetCaravanArmy, SetFaction, SetGarrisonArmy, SetGuardingArmy, SetInitState, SetSiteOwner, SetUncheckedCaravans, SpawnFlag, TransferHero, TransferHeroComplete, UnloadCaravan, UnloadCaravans, UpdateLocalGuardByCreature, UpdateLocalGuardReserve
H7VisitableSiteProperties: mAbilityManager, mAdventureController, mAiBaseUtility, mAiOnIgnore, mBuffFlags, mBuffManager, mCliffMat, mClusterRef, mCustomNameInst, mEffectManager, mEntranceCell, mEntranceOffset, mEntranceSprite, mEventManager, mGlobalName, mHeroEventParam, mInitDone, mInitNameDone, mIsUnblockingEntrance, mLandscape, mLayer, mMinimapColor, mMinimapHidden, mMinimapIcon, mName, mQuestFlag, mReachabilityCheckDone, mSavedLocation, mSavedRotation, mUseCustomName, mVisitingArmy
Functions: AdaptToLandscape, AddBuffFlag, AddQuestFlag, AddSelfToMinimap, ApplyDamage, ClearQuestFlag, DataChanged, Destroyed, GetAbilityManager, GetActionID, GetAiBaseUtility, GetAiOnIgnore, GetAttack, GetBuffFlags, GetBuffManager, GetColor, GetCombatArmy, GetCurrentPosition, GetCustomName, GetEffectManager, GetEntityType, GetEntranceCell, GetEntranceOffset, GetEventManager, GetFlashMinimapPath, GetGridPosition, GetHasMinimap, GetHeightAsVector, GetHitPoints, GetID, GetLocation, GetLuckDestiny, GetMagic, GetMaximumDamage, GetMinimapColor, GetMinimapHidden, GetMinimapIcon, GetMinimumDamage, GetName, GetOriginal, GetPlayer, GetPreparedAbility, GetResistanceModifierFor, GetSchool, GetStackSize, GetVisitingArmy, GetVisitString, GetWorldEntranceNative, GUIAddListener, GUIWriteInto, InitAdventureObject, IsDefaultAttackActive, IsHidden, IsMovable, IsNeutral, IsUnblockingEntrance, LocalizeCustomName, NotifyVisit, OnTerrainChange, OnVisit, OverrideName, PostSerialize, PrepareAbility, ReorderBuffFlags, SetAiOnIgnore, SetAiUtilityValue, SetMinimapColor, SetMinimapHidden, SetName, SetVisitingArmy, SpendPickupCostsOnVisit, TriggerEvents, UnregisterEventManageable, UsePreparedAbility
H7AdventureObjectProperties: frameCount, mFloatRotationIntensity, mFloatSwayIntensity, Mid, mIsFloating, mOriginalLocation, mPassabilityType
Functions: AddQuestFlag, ClearQuestFlag, GetCellsUnderMe, GetCurrentPosition, GetName, GetQuestTargetID, InitAdventureObject, IsFloating, IsHidden, IsMovable, OnDoubleClick, OnLeftClick, OnRightClick, OnVisit, PostBeginPlay, ReferenceSelfToCells, SetFloating, UpdateFloating
H7EditorMapObjectProperties: AnimNodeSeqComp, mDynamicLightEnv, mFX, mHideMeshAndFX, mMesh, mShouldOutlineSkelMesh, mSnapToGroundType, mSnapType, mTerrainOffset
Functions: GetFX, GetMesh, GetMeshComp, SetMesh, SetShouldHideMeshAndFX, SetVisibility, ToggleVisibility
SkeletalMeshActorMAT1 properties, 13 functions
SkeletalMeshCinematicActor0 properties, 0 functions
SkeletalMeshActor15 properties, 28 functions
Actor156 properties, 262 functions
Object13 properties, 308 functions