22class DwellerComponent {
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;
51 DwellerComponent& operator=(DwellerComponent
const&);
52 DwellerComponent(DwellerComponent
const&);
58 MCAPI
bool _isLockedInToProfession(
::Actor const& owner)
const;
64 MCAPI ::std::weak_ptr<::Village>
const getVillage(
::Actor const& owner)
const;
66 MCAPI ::BlockPos getVillageCenter(
::Actor const& owner)
const;
68 MCAPI
bool hasPreferredProfession(
::Actor const& owner)
const;
70 MCAPI
void initFromDefinition(
::Actor& owner);
72 MCAPI
bool isWithinRestriction(
::Actor const& owner)
const;
74 MCAPI
bool needsToFixupJobSite(
::Actor const& owner)
const;
76 MCAPI
bool needsToFixupProfession(
::Actor const& owner)
const;
80 MCAPI
void onRemove(
::Actor& owner);
82 MCAPI ::DwellerComponent& operator=(::DwellerComponent&&);
94 MCAPI static ::std::unordered_map<::std::string, ::DwellerRole>
const& DWELLING_ROLES();
96 MCAPI static ::std::unordered_map<::std::string, ::DwellerComponent::DwellingType>
const& DWELLING_TYPES();