3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/deps/core/utility/pub_sub/Subscription.h"
8#include "mc/deps/game_refs/OwnerPtr.h"
9#include "mc/deps/game_refs/StackRefResult.h"
10#include "mc/deps/game_refs/WeakRef.h"
29class AutonomousActorManager {
33 ::ll::TypedStorage<8, 24, ::std::vector<::OwnerPtr<::EntityContext>>> mOwnedInactiveAutonomousActors;
34 ::ll::TypedStorage<8, 24, ::std::vector<::WeakEntityRef>> mActiveAutonomousActors;
35 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::ActorManager>
const> mActorManager;
36 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnRemoveActorEntityReferences;
37 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnAutonomousActorRemovedSubscription;
38 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnChunkLoaded;
39 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnChunkDiscarded;
40 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnSaveGameDataSubscription;
41 ::ll::TypedStorage<8, 16, ::WeakRef<::EntityRegistry>> mEntityRegistry;
46 AutonomousActorManager();
53 ::Bedrock::NotNullNonOwnerPtr<::ActorManager> actorManager
83 ::Bedrock::NotNullNonOwnerPtr<::ActorManager> actorManager
Definition ActorFactory.h:33
Definition ActorManager.h:30
MCAPI void _onChunkDiscarded(::LevelChunk &levelChunk)
MCAPI::Actor * addAutonomousActorEntity(::Dimension &dimension, ::OwnerPtr<::EntityContext > entity)
MCAPI::Actor * addAutonomousActorEntity(::IAddActorEntityProxy &addActorEntityProxy, ::OwnerPtr<::EntityContext > entity)
MCAPI AutonomousActorManager(::gsl::not_null<::StackRefResult<::EntityRegistry > > const &entityRegistry, ::Bedrock::NotNullNonOwnerPtr<::ActorManager > actorManager)
MCAPI void registerLevelStorageManagerListener(::ILevelStorageManagerConnector &levelStorageManagerConnector)
MCAPI void registerForLevelChunkEvents(::ILevelChunkEventManagerConnector &levelChunkEventManagerConnector)
MCAPI void loadAutonomousActorsFromDisk(::LevelStorage &levelStorage, ::ActorFactory &actorFactory)
MCAPI void _onRemoveActorEntityReferences(::Actor &actor)
MCAPI bool hasOwnedInactiveAutonomousActorWithUniqueID(::ActorUniqueID actorUniqueID) const
MCAPI ~AutonomousActorManager()
MCAPI void * $ctor(::gsl::not_null<::StackRefResult<::EntityRegistry > > const &entityRegistry, ::Bedrock::NotNullNonOwnerPtr<::ActorManager > actorManager)
MCAPI void _saveAllAutonomousActors(::LevelStorage &levelStorage)
Definition Dimension.h:86
Definition EntityContext.h:15
Definition EntityRegistry.h:10
Definition IAddActorEntityProxy.h:10
Definition ILevelChunkEventManagerConnector.h:14
Definition ILevelStorageManagerConnector.h:13
Definition LevelChunk.h:76
Definition LevelStorage.h:26
Definition StackRefResult.h:7
Definition WeakEntityRef.h:14
Definition ActorUniqueID.h:5