LeviLamina
Loading...
Searching...
No Matches
Village Class Reference

Classes

struct  DwellerData
struct  StandingModifiers

Public Types

enum class  VillageVersion : uchar { Base = 0 , WorksiteInitEventFix = 1 , Count = 2 }
using ClaimedPOIList = ::std::unordered_map<::ActorUniqueID, ::std::array<::std::weak_ptr<::POIInstance>, 3>>
using DwellerMap = ::std::unordered_map<::ActorUniqueID, ::Village::DwellerData>
using DwellerTimestamp = ::std::pair<::ActorUniqueID, ::Tick>
using UnclaimedPOIList = ::std::array<::std::vector<::std::weak_ptr<::POIInstance>>, 3>

Public Member Functions

Villageoperator= (Village const &)
 Village (Village const &)
MCAPI Village (::Dimension &dimension, ::mce::UUID id, ::BlockPos const &origin)
MCAPI void _calcPOIDist ()
MCAPI void _clearVillagerPOIs (::ActorUniqueID const &villager)
MCAPI void _createRaid ()
MCAPI bool _findSpawnPointForRaid (::Vec3 &outSpawnPoint, float const distanceTolerance, float const boundsScaling, bool snapToSurface, bool outsideOfVillage) const
MCAPI::BlockSource * _findSpawnableRegion (::Vec3 spawnPosition, int xzSpreadDistance, bool &outHasSpawnAreaLoaded) const
MCAPI void _playSoundFrom (::Vec3 const &soundOrigin, ::SharedTypes::Legacy::LevelSoundEvent sound)
MCAPI void _saveVillageData (::LevelStorage &levelStorage) const
MCAPI void _saveVillageDwellers (::LevelStorage &levelStorage) const
MCAPI void _saveVillagePOIs (::LevelStorage &levelStorage) const
MCAPI void _saveVillagePlayerStanding (::LevelStorage &levelStorage) const
MCAPI void _saveVillageRaid (::LevelStorage &levelStorage) const
MCAPI void _tryAddPoiToVillage (::ActorUniqueID const &villager, ::std::weak_ptr<::POIInstance > pi)
MCAPI void addActorToVillage (::DwellerRole role, ::ActorUniqueID const &actorID)
MCAPI bool addPOI (::std::weak_ptr<::POIInstance > pi)
MCAPI void addVillager (::ActorUniqueID const &villagerID)
MCAPI bool checkNeedMoreVillagers () const
MCAPI ::std::weak_ptr<::POIInstancefetchOwnedPOI (::ActorUniqueID const &id, ::POIType type)
MCAPI void fireSoundTheAlarm ()
MCAPI::Actor * getClosestAggressor (::Actor *from)
MCAPI::Player * getClosestBadStandingPlayer (::Actor &from)
MCAPI ::std::weak_ptr<::POIInstancegetClosestPOI (::POIType type, ::BlockPos const &position)
MCAPI bool hasInvalidRole (::ActorUniqueID const &actorId, ::DwellerRole const &role)
MCAPI bool hasSpecificDweller (::DwellerRole role, ::ActorUniqueID const &id) const
MCAPI int modifyStanding (::ActorUniqueID const &playerID, int delta)
MCAPI ::std::_List_iterator< ::std::_List_val<::std::_List_simple_types<::std::pair<::ActorUniqueID const, ::Village::DwellerData > > > > removeActorFromVillage (::DwellerRole role, ::ActorUniqueID const &actor)
MCAPI void removeAllInstancesofActorFromVillage (::ActorUniqueID const &actor)
MCAPI ::std::_List_iterator< ::std::_List_val<::std::_List_simple_types<::std::pair<::ActorUniqueID const, ::Village::DwellerData > > > > removeVillager (::ActorUniqueID const &villager)
MCAPI void resetDwellerTimer (::DwellerRole role, ::ActorUniqueID const &id)
MCAPI void setSavedDwellerPosition (::DwellerRole role, ::ActorUniqueID const &id, ::BlockPos pos)
MCAPI void tick (::Tick tick, ::BlockSource &region)
MCAPI void triggerRaid ()
MCAPI void trySetVillagerWorkTimestamp (::ActorUniqueID const &id)
MCAPI void unlinkMismatchedJobsites (::Actor const &villager)
MCAPI bool villagerLivesHere (::ActorUniqueID const &villager) const
MCAPI void * $ctor (::Dimension &dimension, ::mce::UUID id, ::BlockPos const &origin)

Static Public Member Functions

static MCAPI bool isValidRegisteredPOI (::BlockSource &region, ::Block const &block, ::BlockPos const &position)
static MCAPI bool isVillagePOI (::VillageManager const &villageManager, ::Block const &block)
static MCAPI ::std::string const & CELEBRATION_EVENT ()
static MCAPI ::std::string const & RAID_EXPIRY_EVENT ()
static MCAPI ::std::string const & STORAGE_KEY_PREFIX ()

Public Attributes

::ll::TypedStorage< 8, 16, ::mce::UUIDmUniqueID
::ll::TypedStorage< 8, 8, ::Dimension & > mDimension
::ll::TypedStorage< 8, 72, ::std::array<::std::vector<::std::weak_ptr<::POIInstance > >, 3 > > mUnclaimedPOIStacks
::ll::TypedStorage< 8, 64, ::std::unordered_map<::ActorUniqueID, ::std::array<::std::weak_ptr<::POIInstance >, 3 > > > mClaimedPOIs
::ll::TypedStorage< 8, 256, ::std::array<::std::unordered_map<::ActorUniqueID, ::Village::DwellerData >, 4 > > mDwellers
::ll::TypedStorage< 4, 24, ::AABBmBounds
::ll::TypedStorage< 4, 24, ::AABBmStaticRaidBounds
::ll::TypedStorage< 1, 1, uchar > mVillageVersion
::ll::TypedStorage< 8, 8, ::TickmGameTick
::ll::TypedStorage< 8, 8, ::TickmSaveTick
::ll::TypedStorage< 8, 8, ::TickmRingTick
::ll::TypedStorage< 8, 8, ::TickmNoBreedTimer
::ll::TypedStorage< 8, 8, ::TickmBadStandingDecayTimer
::ll::TypedStorage< 8, 8, ::TickmGoodStandingDecayTimer
::ll::TypedStorage< 8, 8, ::TickmPassiveDwellerSpawnTimer
::ll::TypedStorage< 4, 4, int > mInitializationTimer
::ll::TypedStorage< 8, 64, ::std::unordered_map<::ActorUniqueID, int > > mPlayerStanding
::ll::TypedStorage< 8, 64, ::std::unordered_map<::ActorUniqueID, ::Village::DwellerData > > mAggressors
::ll::TypedStorage< 8, 24, ::std::vector<::std::pair<::ActorUniqueID, ::Tick > > > mVillagerWorkTimestamps
::ll::TypedStorage< 1, 1, bool > mVillageInitialized
::ll::TypedStorage< 8, 48, ::HashedString const > mNitwitFamily
::ll::TypedStorage< 8, 48, ::HashedString const > mVillagePrefix
::ll::TypedStorage< 8, 48, ::HashedString const > mVillagePrefixOld
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::Raid > > mRaid
::ll::TypedStorage< 8, 64, ::std::unordered_set<::ActorUniqueID > > mSoundTheAlarmPlayerList

The documentation for this class was generated from the following file: