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;
22class ToastManager;
23namespace Json { class Value; }
24namespace Parties { class PartySystem; }
25// clang-format on
26
28public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<1, 1, bool> mVerifiedCreateCallback;
32 ::ll::TypedStorage<1, 1, bool> mSplitscreenJoinPopupActive;
33 ::ll::TypedStorage<4, 4, float> mPopupVerticalAnchor;
34 ::ll::TypedStorage<4, 4, ::ui::DirtyFlag> mDirty;
35 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::PerfTurtleScreenController>> mPerfTurtleScreenController;
36 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::PartySystemSubController>> mPartySystemController;
37 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::PlayerMessagingToastSubController>>
38 mPlayerMessagingToastSubController;
39 ::ll::TypedStorage<8, 8, ::PersonaRepository&> mPersonaRepository;
40 ::ll::TypedStorage<8, 8, ::IOptionRegistry&> mOptions;
41 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::ToastManager>> mToastManager;
42 ::ll::TypedStorage<8, 376, ::std::optional<::ToastMessage>> mToastMessage;
43 // NOLINTEND
44
45public:
46 // prevent constructor by default
47 ToastScreenController& operator=(ToastScreenController const&);
48 ToastScreenController(ToastScreenController const&);
49 ToastScreenController();
50
51public:
52 // virtual functions
53 // NOLINTBEGIN
54 virtual ~ToastScreenController() /*override*/ = default;
55
56 virtual ::ui::DirtyFlag tick() /*override*/;
57
58 virtual void addStaticScreenVars(::Json::Value& globalVars) /*override*/;
59
60 virtual ::ui::DirtyFlag handleGameEventNotification(::ui::GameEventNotification notification) /*override*/;
61
62 virtual void showToast(::ToastMessage message, bool animateIn) /*override*/;
63
64 virtual void removeToast() /*override*/;
65
66 virtual void refreshToast() /*override*/;
67 // NOLINTEND
68
69public:
70 // member functions
71 // NOLINTBEGIN
72 MCAPI ToastScreenController(
73 ::std::shared_ptr<::MinecraftScreenModel> model,
74 ::PersonaRepository& personaRepository,
75 ::IOptionRegistry& Options,
76 ::ToastManager& toastManager,
77 ::Bedrock::NonOwnerPointer<::Parties::PartySystem> partySystem
78 );
79
80 MCAPI ::IStoreCatalogItem const* _getAchievementPersonaPiece();
81
82 MCAPI ::std::string readToastData(::std::string const& field_name) const;
83 // NOLINTEND
84
85public:
86 // constructor thunks
87 // NOLINTBEGIN
88 MCAPI void* $ctor(
89 ::std::shared_ptr<::MinecraftScreenModel> model,
90 ::PersonaRepository& personaRepository,
91 ::IOptionRegistry& Options,
92 ::ToastManager& toastManager,
93 ::Bedrock::NonOwnerPointer<::Parties::PartySystem> partySystem
94 );
95 // NOLINTEND
96
97public:
98 // virtual function thunks
99 // NOLINTBEGIN
100 MCAPI ::ui::DirtyFlag $tick();
101
102 MCAPI void $addStaticScreenVars(::Json::Value& globalVars);
103
104 MCFOLD ::ui::DirtyFlag $handleGameEventNotification(::ui::GameEventNotification notification);
105
106 MCAPI void $showToast(::ToastMessage message, bool animateIn);
107
108 MCAPI void $removeToast();
109
110 MCAPI void $refreshToast();
111 // NOLINTEND
112};
Definition IOptionRegistry.h:5
Definition IToastListener.h:5
Definition Value.h:16
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 ToastScreenController.h:5