3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/string/HashedString.h"
7#include "mc/entity/components_json_legacy/DwellerRole.h"
8#include "mc/platform/UUID.h"
25 enum class DwellingType :
int {
33 ::ll::TypedStorage<1, 1, bool> mCanFindPOI;
34 ::ll::TypedStorage<1, 1, bool> mCanMigrate;
35 ::ll::TypedStorage<1, 1, bool> mHasJoinedDwelling;
36 ::ll::TypedStorage<1, 1, bool> mFixUpRole;
37 ::ll::TypedStorage<1, 1, bool> mRewardPlayersOnFirstFounding;
38 ::ll::TypedStorage<8, 48, ::HashedString> mPreferredProfession;
39 ::ll::TypedStorage<4, 4, int> mFirstFoundingReward;
40 ::ll::TypedStorage<4, 4, int> mUpdateIntervalVariant;
41 ::ll::TypedStorage<8, 8, uint64> mDwellingUpdateInterval;
42 ::ll::TypedStorage<8, 8, uint64> mUpdateIntervalBase;
43 ::ll::TypedStorage<4, 4, float> mDwellingBoundsTolerance;
44 ::ll::TypedStorage<4, 4, ::DwellerComponent::DwellingType> mType;
45 ::ll::TypedStorage<4, 4, ::DwellerRole> mRole;
46 ::ll::TypedStorage<8, 16, ::mce::UUID> mDwellingUniqueID;
92 MCNAPI static ::std::unordered_map<::std::string, ::DwellerRole>
const&
DWELLING_ROLES();
94 MCNAPI static ::std::unordered_map<::std::string, ::DwellerComponent::DwellingType>
const&
DWELLING_TYPES();
Definition ActorDamageSource.h:18
Definition CompoundTag.h:18
Definition DataLoadHelper.h:20
Definition DwellerComponent.h:22
MCAPI bool needsToFixupProfession(::Actor const &owner) const
MCAPI bool hasPreferredProfession(::Actor const &owner) const
MCAPI void initFromDefinition(::Actor &owner)
MCAPI bool tryToMigrate(::Actor &owner, ::Village *oldVillage, ::Village *newVillage)
MCAPI void setLastHurtByMob(::Actor &owner, ::Mob *mob)
MCAPI void onDeath(::Actor &owner, ::ActorDamageSource const &source)
MCAPI void setDwellingUniqueID(::Actor &owner, ::mce::UUID id)
MCAPI::BlockPos getVillageCenter(::Actor const &owner) const
MCAPI void onRemove(::Actor &owner)
MCAPI ::std::weak_ptr<::Village > const getVillage(::Actor const &owner) const
MCAPI bool needsToFixupJobSite(::Actor const &owner) const
MCAPI bool isWithinRestriction(::Actor const &owner) const
MCAPI bool trySetPreferredProfession(::Actor const &owner, ::HashedString const &poi)
MCAPI void addAdditionalSaveData(::CompoundTag &tag, ::Actor const &owner) const
MCAPI void fixupProfession(::Actor const &owner, ::Village *village)
MCAPI bool tryToFixupRole(::Actor const &owner, ::Village *village)
static MCAPI ::std::unordered_map<::std::string, ::DwellerRole > const & DWELLING_ROLES()
MCAPI void readAdditionalSaveData(::Actor &owner, ::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
static MCAPI ::std::unordered_map<::std::string, ::DwellerComponent::DwellingType > const & DWELLING_TYPES()
MCAPI bool _isLockedInToProfession(::Actor const &owner) const
Definition HashedString.h:5