Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ToastScreenController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/DirtyFlag.h"
7#include "mc/client/gui/GameEventNotification.h"
8#include "mc/client/gui/screens/controllers/MinecraftScreenController.h"
9#include "mc/client/social/IToastListener.h"
10#include "mc/client/social/ToastMessage.h"
11#include "mc/deps/core/utility/NonOwnerPointer.h"
12
13// auto generated forward declare list
14// clang-format off
15class IOptionRegistry;
16class IStoreCatalogItem;
24class ToastManager;
25namespace Json { class Value; }
26namespace Parties { class PartySystem; }
27// clang-format on
28
30public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<1, 1, bool> mVerifiedCreateCallback;
34 ::ll::TypedStorage<1, 1, bool> mSplitscreenJoinPopupActive;
35 ::ll::TypedStorage<1, 1, bool> mMatchmakingTouchExpanded;
36 ::ll::TypedStorage<4, 4, int> mMatchmakingElapsedSeconds;
37 ::ll::TypedStorage<4, 4, float> mPopupVerticalAnchor;
38 ::ll::TypedStorage<4, 4, ::ui::DirtyFlag> mDirty;
39 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::PerfTurtleScreenController>> mPerfTurtleScreenController;
40 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::PartySystemSubController>> mPartySystemController;
41 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::PlayerMessagingToastSubController>>
42 mPlayerMessagingToastSubController;
43 ::ll::TypedStorage<8, 8, ::PersonaRepository&> mPersonaRepository;
44 ::ll::TypedStorage<8, 8, ::IOptionRegistry&> mOptions;
45 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::ToastManager>> mToastManager;
46 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::MatchmakingQueueState>> mMatchmakingQueueState;
47 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::MatchmakingRequestSender>> mMatchmakingRequestSender;
48 ::ll::TypedStorage<8, 384, ::std::optional<::ToastMessage>> mToastMessage;
49 // NOLINTEND
50
51public:
52 // prevent constructor by default
53 ToastScreenController& operator=(ToastScreenController const&);
54 ToastScreenController(ToastScreenController const&);
55 ToastScreenController();
56
57public:
58 // virtual functions
59 // NOLINTBEGIN
60 virtual ~ToastScreenController() /*override*/ = default;
61
62 virtual ::ui::DirtyFlag tick() /*override*/;
63
64 virtual void addStaticScreenVars(::Json::Value& globalVars) /*override*/;
65
66 virtual ::ui::DirtyFlag handleGameEventNotification(::ui::GameEventNotification notification) /*override*/;
67
68 virtual void showToast(::ToastMessage message, bool animateIn) /*override*/;
69
70 virtual void removeToast() /*override*/;
71
72 virtual void refreshToast() /*override*/;
73 // NOLINTEND
74
75public:
76 // member functions
77 // NOLINTBEGIN
79 ::std::shared_ptr<::MinecraftScreenModel> model,
80 ::PersonaRepository& personaRepository,
81 ::IOptionRegistry& Options,
82 ::ToastManager& toastManager,
83 ::Bedrock::NotNullNonOwnerPtr<::MatchmakingQueueState> const& matchmakingQueueState,
84 ::Bedrock::NotNullNonOwnerPtr<::MatchmakingRequestSender> const& matchmakingRequestSender,
86 );
87
88 MCNAPI ::IStoreCatalogItem const* _getAchievementPersonaPiece();
89
90 MCNAPI ::std::string readToastData(::std::string const& field_name) const;
91 // NOLINTEND
92
93public:
94 // constructor thunks
95 // NOLINTBEGIN
96 MCNAPI void* $ctor(
97 ::std::shared_ptr<::MinecraftScreenModel> model,
98 ::PersonaRepository& personaRepository,
99 ::IOptionRegistry& Options,
100 ::ToastManager& toastManager,
101 ::Bedrock::NotNullNonOwnerPtr<::MatchmakingQueueState> const& matchmakingQueueState,
102 ::Bedrock::NotNullNonOwnerPtr<::MatchmakingRequestSender> const& matchmakingRequestSender,
104 );
105 // NOLINTEND
106
107public:
108 // virtual function thunks
109 // NOLINTBEGIN
110 MCNAPI ::ui::DirtyFlag $tick();
111
112 MCNAPI void $addStaticScreenVars(::Json::Value& globalVars);
113
114 MCNAPI ::ui::DirtyFlag $handleGameEventNotification(::ui::GameEventNotification notification);
115
116 MCNAPI void $showToast(::ToastMessage message, bool animateIn);
117
118 MCNAPI void $removeToast();
119
120 MCNAPI void $refreshToast();
121 // NOLINTEND
122};
Definition NonOwnerPointer.h:9
Definition IOptionRegistry.h:5
Definition IToastListener.h:5
Definition Value.h:16
Definition MatchmakingQueueState.h:5
Definition MatchmakingRequestSender.h:5
Definition MinecraftScreenController.h:5
Definition MinecraftScreenModel.h:5
Definition PartySystem.h:7
Definition PartySystemSubController.h:5
Definition PerfTurtleScreenController.h:5
Definition PersonaRepository.h:5
Definition PlayerMessagingToastSubController.h:5
Definition ToastManager.h:5
Definition ToastMessage.h:5
Definition ToastScreenController.h:5
MCAPI void $showToast(::ToastMessage message, bool animateIn)
MCAPI::std::string readToastData(::std::string const &field_name) const
MCAPI::ui::DirtyFlag $handleGameEventNotification(::ui::GameEventNotification notification)
MCAPI void $refreshToast()
MCAPI void $addStaticScreenVars(::Json::Value &globalVars)
MCAPI void * $ctor(::std::shared_ptr<::MinecraftScreenModel > model, ::PersonaRepository &personaRepository, ::IOptionRegistry &Options, ::ToastManager &toastManager, ::Bedrock::NotNullNonOwnerPtr<::MatchmakingQueueState > const &matchmakingQueueState, ::Bedrock::NotNullNonOwnerPtr<::MatchmakingRequestSender > const &matchmakingRequestSender, ::Bedrock::NonOwnerPointer<::Parties::PartySystem > partySystem)
MCAPI void $removeToast()
MCAPI::ui::DirtyFlag $tick()
MCAPI ToastScreenController(::std::shared_ptr<::MinecraftScreenModel > model, ::PersonaRepository &personaRepository, ::IOptionRegistry &Options, ::ToastManager &toastManager, ::Bedrock::NotNullNonOwnerPtr<::MatchmakingQueueState > const &matchmakingQueueState, ::Bedrock::NotNullNonOwnerPtr<::MatchmakingRequestSender > const &matchmakingRequestSender, ::Bedrock::NonOwnerPointer<::Parties::PartySystem > partySystem)
MCAPI::IStoreCatalogItem const * _getAchievementPersonaPiece()