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
55 MCAPI void _moveActiveAutonomousActorEntityToInactive(::Actor& actor, ::LevelChunk& levelChunk);
56
57 MCAPI void _onChunkDiscarded(::LevelChunk& levelChunk);
58
59 MCAPI void _onRemoveActorEntityReferences(::Actor& actor);
60
61 MCAPI void _saveAllAutonomousActors(::LevelStorage& levelStorage);
62
63 MCAPI ::Actor*
64 addAutonomousActorEntity(::IAddActorEntityProxy& addActorEntityProxy, ::OwnerPtr<::EntityContext> entity);
65
66 MCAPI void loadAutonomousActorsFromDisk(::LevelStorage& levelStorage, ::ActorFactory& actorFactory);
67
68 MCAPI void registerForLevelChunkEvents(::ILevelChunkEventManagerConnector& levelChunkEventManagerConnector);
69
70 MCAPI void registerLevelStorageManagerListener(::ILevelStorageManagerConnector& levelStorageManagerConnector);
71
72 MCAPI bool removeActiveAutonomousActorEntity(::WeakEntityRef weakEntityRef);
73
75 // NOLINTEND
76
77public:
78 // static functions
79 // NOLINTBEGIN
80 MCAPI static void _deduplicateDuplicateActorsFromList(::ListTag& listTag);
81 // NOLINTEND
82
83public:
84 // static variables
85 // NOLINTBEGIN
86 MCAPI static ::std::string_view const& AUTONOMOUS_ACTOR_KEY();
87
88 MCAPI static ::std::string_view const& AUTONOMOUS_ACTOR_LIST_KEY();
89 // NOLINTEND
90
91public:
92 // constructor thunks
93 // NOLINTBEGIN
94 MCAPI 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 MCAPI void $dtor();
104 // NOLINTEND
105};
Definition ActorFactory.h:32
Definition ActorManager.h:25
Definition Actor.h:104
Definition AutonomousActorManager.h:26
Definition EntityContext.h:16
Definition EntityRegistry.h:15
Definition IAddActorEntityProxy.h:10
Definition ILevelChunkEventManagerConnector.h:14
Definition ILevelStorageManagerConnector.h:13
Definition LevelChunk.h:73
Definition LevelStorage.h:24
Definition ListTag.h:12
Definition OwnerPtr.h:7
Definition StackRefResult.h:7
Definition WeakEntityRef.h:14
Definition Alias.h:14