LeviLamina
Loading...
Searching...
No Matches
PlayerListManager.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/core/utility/pub_sub/Publisher.h"
8#include "mc/deps/core/utility/pub_sub/Subscription.h"
9
10// auto generated forward declare list
11// clang-format off
12class EntityContext;
14class PacketSender;
15class PlayerListEntry;
19namespace Bedrock::PubSub::ThreadModel { struct MultiThreaded; }
20namespace mce { class UUID; }
21// clang-format on
22
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 64, ::std::unordered_map<::mce::UUID, ::PlayerListEntry>> mPlayerList;
28 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::PacketSender>> mPacketSender;
29 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::PlayerLocationReceiver>> mPlayerLocationReceiver;
30 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::PlayerLocationSender>> mPlayerLocationSender;
31 ::ll::TypedStorage<
32 8,
33 128,
35 void(::PlayerListEntry const&, ::std::unordered_map<::mce::UUID, ::PlayerListEntry> const&),
37 0>>
38 mOnPlayerListEntryAdded;
39 ::ll::TypedStorage<
40 8,
41 128,
43 void(::PlayerListEntry const&, ::std::unordered_map<::mce::UUID, ::PlayerListEntry> const&),
45 0>>
46 mOnPlayerListEntryRemoved;
47 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnGameplayUserAddedSubscription;
48 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnGameplayUserRemovedSubscription;
49 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnAnyGameplayUsersRemovedSubscription;
50 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PlayerListPacket>> mPendingPlayerListRemovePacket;
51 // NOLINTEND
52
53public:
54 // member functions
55 // NOLINTBEGIN
56 MCAPI PlayerListManager();
57
58 MCAPI void _onAnyGameplayUsersRemoved();
59
60 MCAPI void _onGameplayUserAdded(::EntityContext& entity);
61
62 MCAPI void _onGameplayUserRemoved(::EntityContext& entity);
63
64 MCAPI void initializeWithGameplayUserManagerOnServer(::IGameplayUserManagerConnector& gameplayUserManagerConnector);
65
66 MCAPI void removeByUUID(::mce::UUID const& uuid);
67
68 MCAPI void setPacketSender(::PacketSender& packetSender);
69
70 MCAPI void setPlayerLocationReceiver(::Bedrock::NonOwnerPointer<::PlayerLocationReceiver> playerLocationReceiver);
71
72 MCAPI void setPlayerLocationSender(::Bedrock::NonOwnerPointer<::PlayerLocationSender> playerLocationSender);
73
74 MCAPI ~PlayerListManager();
75 // NOLINTEND
76
77public:
78 // constructor thunks
79 // NOLINTBEGIN
80 MCAPI void* $ctor();
81 // NOLINTEND
82
83public:
84 // destructor thunk
85 // NOLINTBEGIN
86 MCAPI void $dtor();
87 // NOLINTEND
88};
Definition NonOwnerPointer.h:9
Definition Publisher.h:8
Definition EntityContext.h:16
Definition IGameplayUserManagerConnector.h:14
Definition PacketSender.h:17
Definition PlayerListEntry.h:19
Definition PlayerListManager.h:23
Definition PlayerListPacket.h:18
Definition PlayerLocationReceiver.h:5
Definition PlayerLocationSender.h:18
Definition UUID.h:7