LeviLamina
Loading...
Searching...
No Matches
GameplayUserManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/pub_sub/Connector.h"
7#include "mc/deps/game_refs/OwnerPtr.h"
8#include "mc/world/level/IGameplayUserManagerConnector.h"
9
10// auto generated forward declare list
11// clang-format off
12class EntityContext;
16class LevelStorage;
18class Player;
19class WeakEntityRef;
20// clang-format on
21
23public:
24 // member variables
25 // NOLINTBEGIN
40 // NOLINTEND
41
42public:
43 // prevent constructor by default
47
48public:
49 // virtual functions
50 // NOLINTBEGIN
51 // vIndex: 6
52 virtual ~GameplayUserManager();
53
54 // vIndex: 0
55 virtual ::Bedrock::PubSub::Connector<void(::EntityContext&)>& getGameplayUserAddedConnector() /*override*/;
56
57 // vIndex: 1
58 virtual ::Bedrock::PubSub::Connector<void(::EntityContext const&)>& getGameplayUserResumedConnector() /*override*/;
59
60 // vIndex: 2
61 virtual ::Bedrock::PubSub::Connector<void(::EntityContext const&)>&
62 getGameplayUserSuspendedConnector() /*override*/;
63
64 // vIndex: 3
65 virtual ::Bedrock::PubSub::Connector<void(::Player const&)>& getPlayerRenamedConnector() /*override*/;
66
67 // vIndex: 4
68 virtual ::Bedrock::PubSub::Connector<void(::EntityContext&)>& getGameplayUserRemovedConnector() /*override*/;
69
70 // vIndex: 5
71 virtual ::Bedrock::PubSub::Connector<void()>& getAnyGameplayUsersRemovedConnector() /*override*/;
72 // NOLINTEND
73
74public:
75 // member functions
76 // NOLINTBEGIN
77 MCAPI explicit GameplayUserManager(::std::unique_ptr<::GameplayUserManagerProxy> gameplayUserManagerProxy);
78
79 MCAPI void _addTrackedMapPlayers(::MapItemSavedData& mapItemSavedData);
80
81 MCAPI void _forEachActivePlayer(::std::function<bool(::Player&)> callback, bool includeRemovedPlayers) const;
82
83 MCAPI int _getNewPlayerId() const;
84
85 MCAPI void _resumePlayer(::WeakEntityRef weakEntityUser);
86
87 MCAPI void _saveAllPlayers(::LevelStorage& levelStorage);
88
89 MCAPI void _suspendPlayer(::WeakEntityRef weakEntityUser);
90
91 MCAPI void addGameplayUser(::OwnerPtr<::EntityContext> userEntity);
92
93 MCAPI void cleanupRemovedGameplayUsers();
94
95 MCAPI void clearAllGameplayUserEntities();
96
97 MCAPI void forEachActiveGameplayUser(::std::function<bool(::EntityContext&)> callback) const;
98
99 MCAPI bool isGameplayUserSuspended(::WeakEntityRef weakEntityUser) const;
100
101 MCAPI void queueResumePlayer(::EntityContext const& playerEntity);
102
103 MCAPI void queueSuspendPlayer(::EntityContext const& playerEntity);
104
105 MCAPI void registerLevelStorageManagerListener(::ILevelStorageManagerConnector& levelStorageManagerConnector);
106
107 MCAPI void registerMapDataManagerListener(::IServerMapDataManagerConnector& serverMapDataManagerConnector);
108
109 MCAPI void startLeaveGame();
110 // NOLINTEND
111
112public:
113 // constructor thunks
114 // NOLINTBEGIN
115 MCAPI void* $ctor(::std::unique_ptr<::GameplayUserManagerProxy> gameplayUserManagerProxy);
116 // NOLINTEND
117
118public:
119 // destructor thunk
120 // NOLINTBEGIN
121 MCAPI void $dtor();
122 // NOLINTEND
123
124public:
125 // virtual function thunks
126 // NOLINTBEGIN
127 MCAPI ::Bedrock::PubSub::Connector<void(::EntityContext&)>& $getGameplayUserAddedConnector();
128
129 MCAPI ::Bedrock::PubSub::Connector<void(::EntityContext const&)>& $getGameplayUserResumedConnector();
130
131 MCFOLD ::Bedrock::PubSub::Connector<void(::EntityContext const&)>& $getGameplayUserSuspendedConnector();
132
133 MCAPI ::Bedrock::PubSub::Connector<void(::Player const&)>& $getPlayerRenamedConnector();
134
135 MCAPI ::Bedrock::PubSub::Connector<void(::EntityContext&)>& $getGameplayUserRemovedConnector();
136
137 MCAPI ::Bedrock::PubSub::Connector<void()>& $getAnyGameplayUsersRemovedConnector();
138 // NOLINTEND
139
140public:
141 // vftables
142 // NOLINTBEGIN
143 MCAPI static void** $vftable();
144 // NOLINTEND
145};
Definition EntityContext.h:16
Definition GameplayUserManagerProxy.h:11
Definition GameplayUserManager.h:22
Definition IGameplayUserManagerConnector.h:14
Definition ILevelStorageManagerConnector.h:13
Definition IServerMapDataManagerConnector.h:13
Definition LevelStorage.h:24
Definition MapItemSavedData.h:31
Definition OwnerPtr.h:7
Definition Player.h:119
Definition WeakEntityRef.h:14
Definition Alias.h:14