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 { class PartySystem; }
18namespace Parties { struct PartyDestinationGathering; }
19namespace Parties { struct PartyDestinationRealm; }
20namespace Parties { struct PartyDestinationXblP2P; }
21namespace Parties { struct PartyEventAcceptInviteFailed; }
22namespace Parties { struct PartyEventCreateFailed; }
23namespace Parties { struct PartyEventInviteExpired; }
24namespace Parties { struct PartyEventJoinFailed; }
25namespace Parties { struct PartyEventJoinablePartyExpired; }
26namespace Parties { struct PartyEventJoinedParty; }
27namespace Parties { struct PartyEventLeaderChanged; }
28namespace Parties { struct PartyEventLeaveFailed; }
29namespace Parties { struct PartyEventLeftParty; }
30namespace Parties { struct PartyEventMemberJoined; }
31namespace Parties { struct PartyEventMemberLeft; }
32namespace Parties { struct PartyEventRemoveMemberFailed; }
33namespace Parties { struct PartyEventSendInviteFailed; }
34namespace Parties { struct PartyEventSetLeaderFailed; }
35// clang-format on
36
38public:
39 // member variables
40 // NOLINTBEGIN
41 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mPartyInviteUpdateSubscription;
42 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mPartyEventSubscription;
43 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mPartyTravelSubscription;
44 ::ll::TypedStorage<8, 336, ::TaskGroup> mTaskGroup;
45 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::Parties::PartySystem>> mPartySystem;
46 ::ll::TypedStorage<8, 8, ::ToastManager&> mToastManager;
47 // NOLINTEND
48
49public:
50 // prevent constructor by default
51 PartySystemSubController& operator=(PartySystemSubController const&);
52 PartySystemSubController(PartySystemSubController const&);
53 PartySystemSubController();
54
55public:
56 // virtual functions
57 // NOLINTBEGIN
58 virtual ~PartySystemSubController() /*override*/;
59
60 virtual void
61 handleToastEvent(::IToastEventListener::ToastEventType const eventType, ::ToastMessage const msg) /*override*/;
62 // NOLINTEND
63
64public:
65 // member functions
66 // NOLINTBEGIN
67 MCAPI PartySystemSubController(
68 ::std::shared_ptr<::MinecraftScreenModel> minecraftScreenModel,
69 ::Bedrock::NotNullNonOwnerPtr<::Parties::PartySystem> partySystem,
70 ::ToastManager& toastManager
71 );
72
73 MCAPI void _onDestinationChange(::Parties::PartyDestinationGathering destGathering);
74
75 MCAPI void _onDestinationChange(::Parties::PartyDestinationRealm destRealm);
76
77 MCAPI void _onDestinationChange(::Parties::PartyDestinationXblP2P destXbl);
78
79 MCAPI void _onEvent(::Parties::PartyEventCreateFailed const&);
80
81 MCAPI void _onEvent(::Parties::PartyEventJoinFailed const&);
82
83 MCAPI void _onEvent(::Parties::PartyEventJoinedParty const&);
84
85 MCAPI void _onEvent(::Parties::PartyEventJoinablePartyExpired const&);
86
87 MCAPI void _onEvent(::Parties::PartyEventInviteExpired const&);
88
89 MCAPI void _onEvent(::Parties::PartyEventAcceptInviteFailed const&);
90
91 MCAPI void _onEvent(::Parties::PartyEventLeaveFailed const&);
92
93 MCAPI void _onEvent(::Parties::PartyEventLeftParty const&);
94
95 MCAPI void _onEvent(::Parties::PartyEventSetLeaderFailed const&);
96
97 MCAPI void _onEvent(::Parties::PartyEventSendInviteFailed const&);
98
99 MCAPI void _onEvent(::Parties::PartyEventRemoveMemberFailed const&);
100
101 MCAPI void _onEvent(::Parties::PartyEventMemberLeft const& event);
102
103 MCAPI void _onEvent(::Parties::PartyEventLeaderChanged const& event);
104
105 MCAPI void _onEvent(::Parties::PartyEventMemberJoined const& event);
106
107 MCAPI void _showInviteToast(::std::string inviterXuid);
108
109 MCAPI void _showTravelToast(::std::string toastTitle, bool showWorldIcon);
110 // NOLINTEND
111
112public:
113 // constructor thunks
114 // NOLINTBEGIN
115 MCAPI void* $ctor(
116 ::std::shared_ptr<::MinecraftScreenModel> minecraftScreenModel,
117 ::Bedrock::NotNullNonOwnerPtr<::Parties::PartySystem> partySystem,
118 ::ToastManager& toastManager
119 );
120 // NOLINTEND
121
122public:
123 // destructor thunk
124 // NOLINTBEGIN
125 MCAPI void $dtor();
126 // NOLINTEND
127
128public:
129 // virtual function thunks
130 // NOLINTBEGIN
131 MCAPI void $handleToastEvent(::IToastEventListener::ToastEventType const eventType, ::ToastMessage const msg);
132 // NOLINTEND
133
134public:
135 // vftables
136 // NOLINTBEGIN
137 MCNAPI static void** $vftableForScreenController();
138
139 MCNAPI static void** $vftable();
140
142 // NOLINTEND
143};
Definition IToastEventListener.h:5
Definition MinecraftScreenController.h:5
Definition MinecraftScreenModel.h:5
Definition PartySystem.h:7
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 PartyDestinationGathering.h:7
Definition PartyDestinationRealm.h:7
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