Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
TickingAreasManager Class Reference

Classes

struct  ScopedContext

Public Types

enum class  AreaLimitCheck : int { None = 0 , ActiveStandalone = 1 , ActiveAndPendingStandalone = 2 }
using ActivePerDimension = ::std::map<::DimensionType, ::std::shared_ptr<::TickingAreaList>>
using PendingPerDimension = ::std::unordered_map<::DimensionType, ::std::vector<::PendingArea>>

Public Member Functions

MCAPI TickingAreasManager (::Bedrock::NonOwnerPointer<::LevelStorage > levelStorage, ::TickingAreaLimitPolicy limitPolicy)
MCAPI::AddTickingAreaStatus _addArea (::DimensionType dimensionId, ::std::string const &name, ::Bounds const &bounds, bool isCircle, ::TickingAreasManager::AreaLimitCheck limitCheck, bool isPersistent, ::TickingAreaLoadMode loadMode, ::LevelStorage &levelStorage)
MCAPI ::std::vector<::TickingAreaDescription > _getPendingAreaDescriptionsFiltered (::DimensionType dimensionId, ::std::function< bool(::PendingArea const &)> includeInList) const
MCAPI void _postReloadActorAdded (::Actor &actor)
MCAPI void addEntityArea (::DimensionType dimensionId, ::Actor const &actor, ::LevelStorage &levelStorage)
MCAPI void addEntityArea (::DimensionType dimensionId, ::ActorUniqueID const &entityId, ::Bounds bounds, bool alwaysActive, float maxDistToPlayers, ::LevelStorage &levelStorage)
MCAPI void addTickingAreaListForDimension (::DimensionType dimensionId, ::std::shared_ptr<::TickingAreaList > const &tickingAreaList)
MCAPI::TickingAreasManager::ScopedContext addTransientScopedArea (::DimensionType dimensionId, ::std::string const &name, uint64 scopeKey, ::mce::UUID uuid, ::Bounds const &bounds)
MCAPI uint countStandaloneTickingAreas () const
MCAPI void registerForActorManagerEvents (::IActorManagerConnector &actorManagerConnector)
MCAPI void registerForLevelStorageManagerEvents (::ILevelStorageManagerConnector &levelStorageManagerConnector)
MCAPI ::std::vector<::TickingAreaDescription > removePendingAreaByName (::DimensionType dimensionId, ::std::string const &name, ::LevelStorage &levelStorage)
MCAPI ::std::vector<::TickingAreaDescription > removePendingAreaByPosition (::DimensionType dimensionId, ::BlockPos const &position, ::LevelStorage &levelStorage)
MCAPI void removeScopedAreas (::std::vector<::mce::UUID > const &uuids)
MCAPI ::std::vector<::TickingAreaDescription > setPendingAreaLoadModeByName (::DimensionType dimensionId, ::std::string const &name, ::TickingAreaLoadMode loadMode, ::LevelStorage &levelStorage)
MCAPI ::std::vector<::TickingAreaDescription > setPendingAreaLoadModeByPosition (::DimensionType dimensionId, ::BlockPos const &position, ::TickingAreaLoadMode loadMode, ::LevelStorage &levelStorage)
MCAPI void update (::Level &level, ::LevelStorage &levelStorage)
MCAPI void * $ctor (::Bedrock::NonOwnerPointer<::LevelStorage > levelStorage, ::TickingAreaLimitPolicy limitPolicy)

Static Public Member Functions

static MCAPI void _deletePendingArea (::LevelStorage &levelStorage, ::PendingArea const &pendingArea)
static MCAPI void _savePendingArea (::LevelStorage &levelStorage, ::DimensionType dimensionId, ::PendingArea const &pendingArea)
static MCAPI ::TickingAreasManager::AreaLimitCheck getLimitCheck (::Level const &level, bool enforce)

Public Attributes

::ll::TypedStorage< 8, 16, ::std::map<::DimensionType, ::std::shared_ptr<::TickingAreaList > > > mActiveAreas
::ll::TypedStorage< 8, 64, ::std::unordered_map<::DimensionType, ::std::vector<::PendingArea > > > mPendingAreas
::ll::TypedStorage< 1, 1, bool > mIsPreloadDone
::ll::TypedStorage< 8, 24, ::Bedrock::NonOwnerPointer<::LevelStorage > const > mLevelStorage
::ll::TypedStorage< 4, 24, ::TickingAreaLimitPolicy const > mLimitPolicy
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::Subscription > mPostReloadActorAdded
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::Subscription > mOnCanStartGameSaveTimerCheckSubscription

Constructor & Destructor Documentation

◆ TickingAreasManager()

MCAPI TickingAreasManager::TickingAreasManager ( ::Bedrock::NonOwnerPointer<::LevelStorage > levelStorage,
::TickingAreaLimitPolicy limitPolicy )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

Member Function Documentation

◆ _addArea()

MCAPI::AddTickingAreaStatus TickingAreasManager::_addArea ( ::DimensionType dimensionId,
::std::string const & name,
::Bounds const & bounds,
bool isCircle,
::TickingAreasManager::AreaLimitCheck limitCheck,
bool isPersistent,
::TickingAreaLoadMode loadMode,
::LevelStorage & levelStorage )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _getPendingAreaDescriptionsFiltered()

MCAPI ::std::vector<::TickingAreaDescription > TickingAreasManager::_getPendingAreaDescriptionsFiltered ( ::DimensionType dimensionId,
::std::function< bool(::PendingArea const &)> includeInList ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _postReloadActorAdded()

MCAPI void TickingAreasManager::_postReloadActorAdded ( ::Actor & actor)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ addEntityArea() [1/2]

MCAPI void TickingAreasManager::addEntityArea ( ::DimensionType dimensionId,
::Actor const & actor,
::LevelStorage & levelStorage )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ addEntityArea() [2/2]

MCAPI void TickingAreasManager::addEntityArea ( ::DimensionType dimensionId,
::ActorUniqueID const & entityId,
::Bounds bounds,
bool alwaysActive,
float maxDistToPlayers,
::LevelStorage & levelStorage )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ addTickingAreaListForDimension()

MCAPI void TickingAreasManager::addTickingAreaListForDimension ( ::DimensionType dimensionId,
::std::shared_ptr<::TickingAreaList > const & tickingAreaList )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ addTransientScopedArea()

MCAPI::TickingAreasManager::ScopedContext TickingAreasManager::addTransientScopedArea ( ::DimensionType dimensionId,
::std::string const & name,
uint64 scopeKey,
::mce::UUID uuid,
::Bounds const & bounds )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ countStandaloneTickingAreas()

MCAPI uint TickingAreasManager::countStandaloneTickingAreas ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ registerForActorManagerEvents()

MCAPI void TickingAreasManager::registerForActorManagerEvents ( ::IActorManagerConnector & actorManagerConnector)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ registerForLevelStorageManagerEvents()

MCAPI void TickingAreasManager::registerForLevelStorageManagerEvents ( ::ILevelStorageManagerConnector & levelStorageManagerConnector)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ removePendingAreaByName()

MCAPI ::std::vector<::TickingAreaDescription > TickingAreasManager::removePendingAreaByName ( ::DimensionType dimensionId,
::std::string const & name,
::LevelStorage & levelStorage )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ removePendingAreaByPosition()

MCAPI ::std::vector<::TickingAreaDescription > TickingAreasManager::removePendingAreaByPosition ( ::DimensionType dimensionId,
::BlockPos const & position,
::LevelStorage & levelStorage )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ removeScopedAreas()

MCAPI void TickingAreasManager::removeScopedAreas ( ::std::vector<::mce::UUID > const & uuids)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ setPendingAreaLoadModeByName()

MCAPI ::std::vector<::TickingAreaDescription > TickingAreasManager::setPendingAreaLoadModeByName ( ::DimensionType dimensionId,
::std::string const & name,
::TickingAreaLoadMode loadMode,
::LevelStorage & levelStorage )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ setPendingAreaLoadModeByPosition()

MCAPI ::std::vector<::TickingAreaDescription > TickingAreasManager::setPendingAreaLoadModeByPosition ( ::DimensionType dimensionId,
::BlockPos const & position,
::TickingAreaLoadMode loadMode,
::LevelStorage & levelStorage )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ update()

MCAPI void TickingAreasManager::update ( ::Level & level,
::LevelStorage & levelStorage )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _deletePendingArea()

MCAPI void TickingAreasManager::_deletePendingArea ( ::LevelStorage & levelStorage,
::PendingArea const & pendingArea )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _savePendingArea()

MCAPI void TickingAreasManager::_savePendingArea ( ::LevelStorage & levelStorage,
::DimensionType dimensionId,
::PendingArea const & pendingArea )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getLimitCheck()

MCAPI ::TickingAreasManager::AreaLimitCheck TickingAreasManager::getLimitCheck ( ::Level const & level,
bool enforce )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor()

MCAPI void * TickingAreasManager::$ctor ( ::Bedrock::NonOwnerPointer<::LevelStorage > levelStorage,
::TickingAreaLimitPolicy limitPolicy )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

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