LeviLamina
Loading...
Searching...
No Matches
AutonomousActorManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/deps/game_refs/OwnerPtr.h"
8#include "mc/deps/game_refs/StackRefResult.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class ActorFactory;
14class ActorManager;
15class EntityContext;
16class EntityRegistry;
20class LevelChunk;
21class LevelStorage;
22class ListTag;
23class WeakEntityRef;
24// clang-format on
25
27public:
28 // member variables
29 // NOLINTBEGIN
39 // NOLINTEND
40
41public:
42 // prevent constructor by default
46
47public:
48 // member functions
49 // NOLINTBEGIN
51 ::gsl::not_null<::StackRefResult<::EntityRegistry>> const& entityRegistry,
52 ::Bedrock::NotNullNonOwnerPtr<::ActorManager> actorManager
53 );
54
56
57 MCNAPI void _onChunkDiscarded(::LevelChunk& levelChunk);
58
60
61 MCNAPI void _saveAllAutonomousActors(::LevelStorage& levelStorage);
62
63 MCNAPI ::Actor*
65
66 MCNAPI void loadAutonomousActorsFromDisk(::LevelStorage& levelStorage, ::ActorFactory& actorFactory);
67
68 MCNAPI void registerForLevelChunkEvents(::ILevelChunkEventManagerConnector& levelChunkEventManagerConnector);
69
70 MCNAPI void registerLevelStorageManagerListener(::ILevelStorageManagerConnector& levelStorageManagerConnector);
71
73
75 // NOLINTEND
76
77public:
78 // static functions
79 // NOLINTBEGIN
80 MCNAPI static void _deduplicateDuplicateActorsFromList(::ListTag& listTag);
81 // NOLINTEND
82
83public:
84 // static variables
85 // NOLINTBEGIN
86 MCNAPI static ::std::string_view const& AUTONOMOUS_ACTOR_KEY();
87
88 MCNAPI static ::std::string_view const& AUTONOMOUS_ACTOR_LIST_KEY();
89 // NOLINTEND
90
91public:
92 // constructor thunks
93 // NOLINTBEGIN
94 MCNAPI void* $ctor(
95 ::gsl::not_null<::StackRefResult<::EntityRegistry>> const& entityRegistry,
96 ::Bedrock::NotNullNonOwnerPtr<::ActorManager> actorManager
97 );
98 // NOLINTEND
99
100public:
101 // destructor thunk
102 // NOLINTBEGIN
103 MCNAPI void $dtor();
104 // NOLINTEND
105};
Definition ActorFactory.h:32
Definition ActorManager.h:25
Definition Actor.h:103
Definition AutonomousActorManager.h:26
MCAPI void _onChunkDiscarded(::LevelChunk &levelChunk)
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 _moveActiveAutonomousActorEntityToInactive(::Actor &actor, ::LevelChunk &levelChunk)
MCAPI void registerForLevelChunkEvents(::ILevelChunkEventManagerConnector &levelChunkEventManagerConnector)
MCAPI void loadAutonomousActorsFromDisk(::LevelStorage &levelStorage, ::ActorFactory &actorFactory)
static MCAPI void _deduplicateDuplicateActorsFromList(::ListTag &listTag)
static MCAPI ::std::string_view const & AUTONOMOUS_ACTOR_KEY()
MCAPI void _onRemoveActorEntityReferences(::Actor &actor)
static MCAPI ::std::string_view const & AUTONOMOUS_ACTOR_LIST_KEY()
MCAPI bool removeActiveAutonomousActorEntity(::WeakEntityRef weakEntityRef)
MCAPI void * $ctor(::gsl::not_null<::StackRefResult<::EntityRegistry > > const &entityRegistry, ::Bedrock::NotNullNonOwnerPtr<::ActorManager > actorManager)
MCAPI void _saveAllAutonomousActors(::LevelStorage &levelStorage)
Definition EntityContext.h:16
Definition EntityRegistry.h:11
Definition IAddActorEntityProxy.h:10
Definition ILevelChunkEventManagerConnector.h:14
Definition ILevelStorageManagerConnector.h:13
Definition LevelChunk.h:74
Definition LevelStorage.h:25
Definition ListTag.h:12
Definition OwnerPtr.h:7
Definition StackRefResult.h:7
Definition WeakEntityRef.h:14
Definition Alias.h:14