24class PlayerListManager {
28 ::ll::TypedStorage<8, 64, ::std::unordered_map<::mce::UUID, ::PlayerListEntry>> mPlayerList;
29 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::PacketSender>> mPacketSender;
30 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::PlayerLocationReceiver>> mPlayerLocationReceiver;
31 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::PlayerLocationSender>> mPlayerLocationSender;
36 void(
::PlayerListEntry const&, ::std::unordered_map<::mce::UUID, ::PlayerListEntry>
const&),
39 mOnPlayerListEntryAdded;
44 void(
::PlayerListEntry const&, ::std::unordered_map<::mce::UUID, ::PlayerListEntry>
const&),
47 mOnPlayerListEntryRemoved;
48 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnGameplayUserAddedSubscription;
49 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnGameplayUserRemovedSubscription;
50 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnAnyGameplayUsersRemovedSubscription;
51 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PlayerListPacket>> mPendingPlayerListRemovePacket;
57 MCAPI PlayerListManager();
59 MCAPI
void _onAnyGameplayUsersRemoved();
68 MCAPI
void clearPlayerList();
70 MCFOLD ::Bedrock::PubSub::Connector<
71 void(
::PlayerListEntry const&, ::std::unordered_map<::mce::UUID, ::PlayerListEntry>
const&)>&
72 getOnPlayerListEntryAddedConnector();
74 MCFOLD ::Bedrock::PubSub::Connector<
75 void(
::PlayerListEntry const&, ::std::unordered_map<::mce::UUID, ::PlayerListEntry>
const&)>&
76 getOnPlayerListEntryRemovedConnector();
79 MCFOLD ::std::unordered_map<::mce::UUID, ::PlayerListEntry>
const& getPlayerList()
const;
81 MCAPI ::std::string
const& getPlayerPlatformOnlineId(
::mce::UUID const& uuid)
const;
83 MCAPI ::std::string
const& getPlayerXUID(
::mce::UUID const& uuid)
const;
95 MCAPI ::PlayerListEntry* tryGetPlayerEntry(
::mce::UUID const& uuid);
97 MCAPI ~PlayerListManager();
Definition EntityContext.h:17
Definition PlayerListEntry.h:20