Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
RecentlyPlayedSessionTracker.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/world/RecentlyPlayedPendingTargetData.h"
7#include "mc/client/world/RecentlyPlayedReloadMode.h"
8#include "mc/client/world/RecentlyPlayedSessionTrackerError.h"
9#include "mc/client/world/RecentlyPlayedStore.h"
10#include "mc/deps/core/utility/NonOwnerPointer.h"
11#include "mc/deps/core/utility/pub_sub/Subscription.h"
12#include "mc/world/events/ClientInstanceEventListener.h"
13#include "mc/world/events/EventResult.h"
14
15// auto generated forward declare list
16// clang-format off
17class ClientInstance;
18namespace Social { class IUserManager; }
19// clang-format on
20
21namespace World {
22
23class RecentlyPlayedSessionTracker : public ::ClientInstanceEventListener,
24 public ::std::enable_shared_from_this<::World::RecentlyPlayedSessionTracker> {
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::Social::IUserManager>> mUserManager;
29 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mSignInCallbackHandle;
30 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mSignOutCallbackHandle;
31 ::ll::TypedStorage<8, 112, ::World::RecentlyPlayedStore> mStore;
32 ::ll::TypedStorage<2, 4, ::std::optional<ushort>> mLastRecordedJoinAttemptId;
33 ::ll::TypedStorage<1, 1, bool> mProfileLoadFailed;
34 ::ll::TypedStorage<8, 568, ::std::optional<::World::RecentlyPlayedPendingTargetData>> mPreparedTarget;
35 ::ll::TypedStorage<2, 4, ::std::optional<ushort>> mPendingJoinAttemptId;
36 ::ll::TypedStorage<8, 568, ::std::optional<::World::RecentlyPlayedPendingTargetData>> mPendingTarget;
37 // NOLINTEND
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 virtual ::EventResult onClientEnteredWorld(::ClientInstance& client) /*override*/;
43 // NOLINTEND
44
45public:
46 // member functions
47 // NOLINTBEGIN
48 MCNAPI void initialize(::Bedrock::NotNullNonOwnerPtr<::Social::IUserManager> const& userManager);
49
51
52 MCNAPI ::nonstd::expected<uint64, ::World::RecentlyPlayedSessionTrackerError>
53 reloadForPrimaryUser(::World::RecentlyPlayedReloadMode reloadMode);
54 // NOLINTEND
55
56public:
57 // virtual function thunks
58 // NOLINTBEGIN
59 MCNAPI ::EventResult $onClientEnteredWorld(::ClientInstance& client);
60 // NOLINTEND
61
62public:
63 // vftables
64 // NOLINTBEGIN
65 MCNAPI static void** $vftable();
66 // NOLINTEND
67};
68
69} // namespace World
Definition ClientInstance.h:5
Definition IUserManager.h:7
Definition RecentlyPlayedSessionTracker.h:7
MCAPI void preparePendingTarget(::World::RecentlyPlayedPendingTargetData target)
MCAPI ::nonstd::expected< uint64, ::World::RecentlyPlayedSessionTrackerError > reloadForPrimaryUser(::World::RecentlyPlayedReloadMode reloadMode)
MCAPI::EventResult $onClientEnteredWorld(::ClientInstance &client)
MCAPI void initialize(::Bedrock::NotNullNonOwnerPtr<::Social::IUserManager > const &userManager)
static MCAPI void ** $vftable()
Definition RecentlyPlayedPendingTargetData.h:7