24 enum class DwellingType :
int {
32 ::ll::TypedStorage<1, 1, bool> mCanFindPOI;
33 ::ll::TypedStorage<1, 1, bool> mCanMigrate;
34 ::ll::TypedStorage<1, 1, bool> mHasJoinedDwelling;
35 ::ll::TypedStorage<1, 1, bool> mFixUpRole;
36 ::ll::TypedStorage<1, 1, bool> mRewardPlayersOnFirstFounding;
37 ::ll::TypedStorage<8, 48, ::HashedString> mPreferredProfession;
38 ::ll::TypedStorage<4, 4, int> mFirstFoundingReward;
39 ::ll::TypedStorage<4, 4, int> mUpdateIntervalVariant;
40 ::ll::TypedStorage<8, 8, uint64> mDwellingUpdateInterval;
41 ::ll::TypedStorage<8, 8, uint64> mUpdateIntervalBase;
42 ::ll::TypedStorage<4, 4, float> mDwellingBoundsTolerance;
43 ::ll::TypedStorage<4, 4, ::DwellerComponent::DwellingType> mType;
44 ::ll::TypedStorage<4, 4, ::DwellerRole> mRole;
45 ::ll::TypedStorage<8, 16, ::mce::UUID> mDwellingUniqueID;
56 MCAPI
bool _isLockedInToProfession(
::Actor const& owner)
const;
62 MCAPI ::std::weak_ptr<::Village>
const getVillage(
::Actor const& owner)
const;
64 MCAPI ::BlockPos getVillageCenter(
::Actor const& owner)
const;
66 MCAPI
bool hasPreferredProfession(
::Actor const& owner)
const;
68 MCAPI
void initFromDefinition(
::Actor& owner);
70 MCAPI
bool isWithinRestriction(
::Actor const& owner)
const;
72 MCAPI
bool needsToFixupJobSite(
::Actor const& owner)
const;
74 MCAPI
bool needsToFixupProfession(
::Actor const& owner)
const;
78 MCAPI
void onRemove(
::Actor& owner);
92 MCAPI static ::std::unordered_map<::std::string, ::DwellerRole>
const& DWELLING_ROLES();
94 MCAPI static ::std::unordered_map<::std::string, ::DwellerComponent::DwellingType>
const& DWELLING_TYPES();