LeviLamina
Loading...
Searching...
No Matches
VillageManager Class Reference
Inheritance diagram for VillageManager:

Classes

struct  VillageInfo
struct  DwellerTestVillageInfo

Public Types

enum class  BedAvailabilityState : int { Unknown = 0 , SomeAvailable = 1 , NoneAvailable = 2 }
using POIBlueprintMap = ::std::unordered_map<::BlockType const*, ::std::unique_ptr<::POIBlueprint>>
using POIMap = ::std::unordered_map<::BlockPos, ::std::shared_ptr<::POIInstance>>
using VillageMap = ::std::unordered_map<::mce::UUID, ::std::shared_ptr<::Village>>

Public Member Functions

VillageManageroperator= (VillageManager const &)
 VillageManager (VillageManager const &)
virtual ::std::weak_ptr<::VillagefetchClosestVillage (::BlockPos const &position, int maxDistFromVillageBounds, uint searchRadius) const
virtual ::std::weak_ptr<::VillagegetVillageByID (::mce::UUID const &villageID) const
MCAPI VillageManager (::Dimension &dimension)
MCAPI void _addPOIWithinRadius (::BlockPos const &pos, ::BlockSource &region)
MCAPI void _assignPOIOnly (::std::shared_ptr<::POIInstance > &&pi)
MCAPI float _calculateDistanceFromPositionToEdgeOfVillage (::BlockPos const &position, ::Village const &village) const
MCAPI ::std::shared_ptr<::Village_createOrGetVillage (::mce::UUID const &id, ::BlockPos const &newVillagePos)
MCAPI ::std::unordered_map<::Village const *, ::VillageManager::BedAvailabilityState > _getVillageWithBedsAvailableMap () const
MCAPI void _loadPOIBlueprints ()
MCAPI void _removeEligibleVillages ()
MCAPI void _removeVillage (::Village &village)
MCAPI void _saveAllVillages (::LevelStorage &levelStorage)
MCAPI void _tryAssignPOIOrCreateVillage (::std::shared_ptr<::POIInstance > &&pi)
MCAPI void _unclusterDerelictPOIs (::std::vector<::std::weak_ptr<::POIInstance > > &pois)
MCAPI ::std::weak_ptr<::VillagefetchClosestVillageMostSuitableForDweller (::BlockPos const &position, int maxDistFromVillageBounds, uint searchRadius) const
MCAPI ::std::weak_ptr<::VillagegetClosestVillageWithRaid (::BlockPos const &pos)
MCAPI ::std::weak_ptr<::POIInstancegetPOI (::BlockPos const &position) const
MCAPI::HashedString getPOIInitEventFromName (::HashedString const &name) const
MCAPI bool hasPOI (::BlockPos const &position, ::POIType type) const
MCAPI void initializeWithLevelStorageManagerConnector (::ILevelStorageManagerConnector &levelStorageManagerConnector)
MCAPI void insertPOI (::std::shared_ptr<::POIInstance > &&poi)
MCAPI bool isValidPOIType (::BlockPos const &pos, ::Block const &block) const
MCAPI void removePOI (::std::weak_ptr<::POIInstance > poi)
MCAPI void tick (::Tick const &tick)
MCAPI ::std::shared_ptr<::POIInstancetryCreatePOI (::BlockPos const &position, ::Block const &block)
MCAPI void * $ctor (::Dimension &dimension)
MCAPI ::std::weak_ptr<::Village$fetchClosestVillage (::BlockPos const &position, int maxDistFromVillageBounds, uint searchRadius) const
MCAPI ::std::weak_ptr<::Village$getVillageByID (::mce::UUID const &villageID) const
MCFOLD void $dtor ()
MCFOLD void * $ctor ()
MCFOLD void * $ctor (::Bedrock::EnableNonOwnerReferences const &)

Static Public Member Functions

static MCAPI int const & MAX_POI_TOLERANCE_DIST ()
static MCAPI ::EffectDuration const & VILLAGE_HERO_EFFECT_DURATION ()
static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 8, ::Dimension & > mDimension
::ll::TypedStorage< 8, 40, ::std::deque<::ActorUniqueID > > mFindPOIQueries
::ll::TypedStorage< 8, 24, ::std::vector<::std::shared_ptr<::POIInstance > > > mUnclusteredPOIs
::ll::TypedStorage< 8, 64, ::std::unordered_map<::mce::UUID, ::std::shared_ptr<::Village > > > mVillages
::ll::TypedStorage< 8, 192, ::std::array<::std::unordered_map<::BlockPos, ::std::shared_ptr<::POIInstance > >, 3 > > mClusteredPOIs
::ll::TypedStorage< 8, 64, ::std::unordered_map<::BlockType const *, ::std::unique_ptr<::POIBlueprint > > > mPOIBlueprints
::ll::TypedStorage< 8, 8, ::TickmTickCount
::ll::TypedStorage< 8, 32, ::WanderingTraderSchedulermWanderingTraderScheduler
::ll::TypedStorage< 1, 1, bool > mFinishedQueryScan
::ll::TypedStorage< 4, 4, int > mCurrentXScan
::ll::TypedStorage< 4, 4, int > mCurrentYScan
::ll::TypedStorage< 4, 4, int > mCurrentZScan
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::SubscriptionmOnSaveSubscription
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::SubscriptionmOnLevelStorageManagerStartLeaveGameSubscription
::std::shared_ptr<::Bedrock::EnableNonOwnerReferences::ControlBlockmControlBlock

Member Function Documentation

◆ fetchClosestVillage()

virtual ::std::weak_ptr<::Village > VillageManager::fetchClosestVillage ( ::BlockPos const & position,
int maxDistFromVillageBounds,
uint searchRadius ) const
virtual

Implements IVillageManager.

◆ getVillageByID()

virtual ::std::weak_ptr<::Village > VillageManager::getVillageByID ( ::mce::UUID const & villageID) const
virtual

Implements IVillageManager.


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