LeviLamina
Loading...
Searching...
No Matches
PartySystemSubController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/screens/controllers/MinecraftScreenController.h"
7#include "mc/client/social/IToastEventListener.h"
8#include "mc/deps/core/threading/TaskGroup.h"
9#include "mc/deps/core/utility/NonOwnerPointer.h"
10#include "mc/deps/core/utility/pub_sub/Subscription.h"
11
12// auto generated forward declare list
13// clang-format off
15class ToastManager;
16class ToastMessage;
17namespace Parties { struct PartyDestinationXblP2P; }
18namespace Parties { struct PartyEventAcceptInviteFailed; }
19namespace Parties { struct PartyEventCreateFailed; }
20namespace Parties { struct PartyEventInviteExpired; }
21namespace Parties { struct PartyEventJoinFailed; }
22namespace Parties { struct PartyEventJoinablePartyExpired; }
23namespace Parties { struct PartyEventJoinedParty; }
24namespace Parties { struct PartyEventLeaderChanged; }
25namespace Parties { struct PartyEventLeaveFailed; }
26namespace Parties { struct PartyEventLeftParty; }
27namespace Parties { struct PartyEventMemberJoined; }
28namespace Parties { struct PartyEventMemberLeft; }
29namespace Parties { struct PartyEventRemoveMemberFailed; }
30namespace Parties { struct PartyEventSendInviteFailed; }
31namespace Parties { struct PartyEventSetLeaderFailed; }
32namespace Parties { struct PartySystem; }
33// clang-format on
34
36public:
37 // member variables
38 // NOLINTBEGIN
39 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mPartyInviteUpdateSubscription;
40 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mPartyEventSubscription;
41 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mPartyTravelSubscription;
42 ::ll::TypedStorage<8, 336, ::TaskGroup> mTaskGroup;
43 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::Parties::PartySystem>> mPartySystem;
44 ::ll::TypedStorage<8, 8, ::ToastManager&> mToastManager;
45 // NOLINTEND
46
47public:
48 // prevent constructor by default
49 PartySystemSubController& operator=(PartySystemSubController const&);
50 PartySystemSubController(PartySystemSubController const&);
51 PartySystemSubController();
52
53public:
54 // virtual functions
55 // NOLINTBEGIN
56 virtual ~PartySystemSubController() /*override*/;
57
58 virtual void
59 handleToastEvent(::IToastEventListener::ToastEventType const eventType, ::ToastMessage const msg) /*override*/;
60 // NOLINTEND
61
62public:
63 // member functions
64 // NOLINTBEGIN
65 MCAPI PartySystemSubController(
66 ::std::shared_ptr<::MinecraftScreenModel> minecraftScreenModel,
67 ::Bedrock::NotNullNonOwnerPtr<::Parties::PartySystem> partySystem,
68 ::ToastManager& toastManager
69 );
70
71 MCAPI void _onDestinationChange(::Parties::PartyDestinationXblP2P dest);
72
73 MCAPI void _onEvent(::Parties::PartyEventCreateFailed const&);
74
75 MCAPI void _onEvent(::Parties::PartyEventJoinFailed const&);
76
77 MCAPI void _onEvent(::Parties::PartyEventJoinedParty const&);
78
79 MCAPI void _onEvent(::Parties::PartyEventJoinablePartyExpired const&);
80
81 MCAPI void _onEvent(::Parties::PartyEventInviteExpired const&);
82
83 MCAPI void _onEvent(::Parties::PartyEventAcceptInviteFailed const&);
84
85 MCAPI void _onEvent(::Parties::PartyEventLeaveFailed const&);
86
87 MCAPI void _onEvent(::Parties::PartyEventLeftParty const&);
88
89 MCAPI void _onEvent(::Parties::PartyEventSetLeaderFailed const&);
90
91 MCAPI void _onEvent(::Parties::PartyEventSendInviteFailed const&);
92
93 MCAPI void _onEvent(::Parties::PartyEventRemoveMemberFailed const&);
94
95 MCAPI void _onEvent(::Parties::PartyEventMemberLeft const& event);
96
97 MCAPI void _onEvent(::Parties::PartyEventLeaderChanged const& event);
98
99 MCAPI void _onEvent(::Parties::PartyEventMemberJoined const& event);
100
101 MCAPI void _showInviteToast(::std::string inviterXuid);
102
103 MCAPI void _showTravelToast(::std::string toastTitle, bool showWorldIcon);
104 // NOLINTEND
105
106public:
107 // constructor thunks
108 // NOLINTBEGIN
109 MCAPI void* $ctor(
110 ::std::shared_ptr<::MinecraftScreenModel> minecraftScreenModel,
111 ::Bedrock::NotNullNonOwnerPtr<::Parties::PartySystem> partySystem,
112 ::ToastManager& toastManager
113 );
114 // NOLINTEND
115
116public:
117 // destructor thunk
118 // NOLINTBEGIN
119 MCAPI void $dtor();
120 // NOLINTEND
121
122public:
123 // virtual function thunks
124 // NOLINTBEGIN
125 MCAPI void $handleToastEvent(::IToastEventListener::ToastEventType const eventType, ::ToastMessage const msg);
126 // NOLINTEND
127
128public:
129 // vftables
130 // NOLINTBEGIN
131 MCNAPI static void** $vftableForScreenController();
132
133 MCNAPI static void** $vftable();
134
136 // NOLINTEND
137};
Definition IToastEventListener.h:5
Definition MinecraftScreenController.h:5
Definition MinecraftScreenModel.h:5
Definition PartySystemSubController.h:5
static MCAPI void ** $vftableForScreenController()
static MCAPI void ** $vftable()
static MCAPI void ** $vftableForEnableNonOwnerReferences()
Definition ToastManager.h:5
Definition ToastMessage.h:5
Definition PartyDestinationXblP2P.h:7
Definition PartyEventAcceptInviteFailed.h:7
Definition PartyEventCreateFailed.h:7
Definition PartyEventInviteExpired.h:7
Definition PartyEventJoinFailed.h:7
Definition PartyEventJoinablePartyExpired.h:7
Definition PartyEventJoinedParty.h:7
Definition PartyEventLeaderChanged.h:7
Definition PartyEventLeaveFailed.h:7
Definition PartyEventLeftParty.h:7
Definition PartyEventMemberJoined.h:7
Definition PartyEventMemberLeft.h:7
Definition PartyEventRemoveMemberFailed.h:7
Definition PartyEventSendInviteFailed.h:7
Definition PartyEventSetLeaderFailed.h:7
Definition PartySystem.h:7