Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
WorldTemplatesScreenController.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/screens/controllers/CreateWorldOrRealm.h"
8#include "mc/client/gui/screens/controllers/MainMenuScreenController.h"
9#include "mc/deps/core/file/PathBuffer.h"
10#include "mc/resources/InvalidPacksFilterGroup.h"
11
12// auto generated forward declare list
13// clang-format off
14class DlcUIWrapper;
16class PlayScreenModel;
18struct InvalidPack;
19struct PackIdVersion;
21namespace Json { class Value; }
22namespace ui { class ScreenTechStackSelector; }
23// clang-format on
24
26public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::PlayScreenModel>> mPlayScreenModel;
30 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::DlcUIWrapper>> mDlcUIWrapper;
31 ::ll::TypedStorage<8, 32, ::std::string> mFilter;
32 ::ll::TypedStorage<8, 24, ::InvalidPacksFilterGroup> mInvalidPacksFilter;
33 ::ll::TypedStorage<8, 24, ::std::vector<::InvalidPack>> mInvalidPacks;
34 ::ll::TypedStorage<8, 24, ::std::vector<::ResourceLocation>> mLoadingPacks;
35 ::ll::TypedStorage<8, 24, ::std::vector<::WorldTemplateInfo>> mPremiumTemplates;
36 ::ll::TypedStorage<8, 24, ::std::vector<::WorldTemplateInfo>> mCustomTemplates;
37 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mLocalTemplateUpdateTime;
38 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mUpdateTime;
39 ::ll::TypedStorage<4, 4, ::CreateWorldOrRealm> mType;
40 ::ll::TypedStorage<1, 1, bool> mHideTopBar;
41 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PlatformMultiplayerRestrictions>> mPlatformMultiplayerRestrictions;
42 ::ll::TypedStorage<8, 8, ::ui::ScreenTechStackSelector const&> mScreenTechStackSelector;
43 // NOLINTEND
44
45public:
46 // prevent constructor by default
47 WorldTemplatesScreenController& operator=(WorldTemplatesScreenController const&);
48 WorldTemplatesScreenController(WorldTemplatesScreenController const&);
49 WorldTemplatesScreenController();
50
51public:
52 // virtual functions
53 // NOLINTBEGIN
54 virtual ~WorldTemplatesScreenController() /*override*/ = default;
55
56 virtual void onOpen() /*override*/;
57
58 virtual ::ui::DirtyFlag tick() /*override*/;
59
60 virtual void addStaticScreenVars(::Json::Value& globalVars) /*override*/;
61
62 virtual int getScreenVersion() const /*override*/;
63 // NOLINTEND
64
65public:
66 // member functions
67 // NOLINTBEGIN
68 MCNAPI WorldTemplatesScreenController(
69 ::std::shared_ptr<::PlayScreenModel> model,
70 ::ui::ScreenTechStackSelector const& screenTechStackSelector,
71 bool hideTopBar
72 );
73
74 MCNAPI void _createWorldTemplate(::PackIdVersion const& packId, ::std::function<void(bool)> successCallback);
75
77
79 // NOLINTEND
80
81public:
82 // static variables
83 // NOLINTBEGIN
84 MCNAPI static ::Core::PathBuffer<::std::string> const& DEFAULT_WORLD_SCREENSHOT();
85
86 MCNAPI static ::std::string const& INVALID_WORLD_SCREENSHOT();
87 // NOLINTEND
88
89public:
90 // constructor thunks
91 // NOLINTBEGIN
92 MCNAPI void* $ctor(
93 ::std::shared_ptr<::PlayScreenModel> model,
94 ::ui::ScreenTechStackSelector const& screenTechStackSelector,
95 bool hideTopBar
96 );
97 // NOLINTEND
98
99public:
100 // virtual function thunks
101 // NOLINTBEGIN
102 MCNAPI void $onOpen();
103
104 MCNAPI ::ui::DirtyFlag $tick();
105
106 MCNAPI void $addStaticScreenVars(::Json::Value& globalVars);
107
108 MCNAPI int $getScreenVersion() const;
109 // NOLINTEND
110};
Definition DlcUIWrapper.h:5
Definition Value.h:16
Definition MainMenuScreenController.h:5
Definition PlatformMultiplayerRestrictions.h:5
Definition PlayScreenModel.h:5
Definition ResourceLocation.h:15
Definition WorldTemplatesScreenController.h:5
static MCAPI ::Core::PathBuffer<::std::string > const & DEFAULT_WORLD_SCREENSHOT()
MCAPI::ui::DirtyFlag $tick()
MCAPI void * $ctor(::std::shared_ptr<::PlayScreenModel > model, ::ui::ScreenTechStackSelector const &screenTechStackSelector, bool hideTopBar)
MCAPI void $addStaticScreenVars(::Json::Value &globalVars)
MCAPI int $getScreenVersion() const
static MCAPI ::std::string const & INVALID_WORLD_SCREENSHOT()
MCAPI void _handleWorldTemplateClicked(::WorldTemplateInfo const &level)
MCAPI void _fetchDownloadedWorldTemplates()
MCAPI void _createWorldTemplate(::PackIdVersion const &packId, ::std::function< void(bool)> successCallback)
Definition ScreenTechStackSelector.h:7
STL namespace.
Definition InvalidPack.h:5
Definition PackIdVersion.h:10
Definition WorldTemplateInfo.h:12