LeviLamina
Loading...
Searching...
No Matches
SelectWorldScreenController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/SceneType.h"
7#include "mc/client/gui/WorldCopyProgressHandler.h"
8#include "mc/client/gui/screens/SelectWorldResult.h"
9#include "mc/client/gui/screens/controllers/MainMenuScreenController.h"
10#include "mc/client/gui/screens/controllers/ModalScreenButtonId.h"
11#include "mc/client/gui/screens/models/SelectWorldModel.h"
12#include "mc/deps/core/utility/optional_ref.h"
13
14// auto generated forward declare list
15// clang-format off
17struct LevelSummary;
18namespace Realms { struct World; }
19// clang-format on
20
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 56, ::SelectWorldModel> mSelectWorldModel;
26 ::ll::TypedStorage<4, 4, int> mSelectedWorldIndex;
27 ::ll::TypedStorage<
28 8,
29 64,
30 ::std::function<
31 void(::SelectWorldResult, ::optional_ref<::LevelSummary const>, ::optional_ref<::Realms::World const>)>>
32 mCallback;
33 ::ll::TypedStorage<1, 1, bool> mRealmsAPICallInProgress;
34 // NOLINTEND
35
36public:
37 // prevent constructor by default
38 SelectWorldScreenController();
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 virtual void onEntered() /*override*/;
44
45 virtual ::ui::SceneType getSceneType() const /*override*/;
46
47 virtual ~SelectWorldScreenController() /*override*/ = default;
48 // NOLINTEND
49
50public:
51 // member functions
52 // NOLINTBEGIN
53 MCAPI SelectWorldScreenController(
54 ::std::shared_ptr<::MainMenuScreenModel> model,
55 ::std::function<
56 void(::SelectWorldResult, ::optional_ref<::LevelSummary const>, ::optional_ref<::Realms::World const>)>
57 callback
58 );
59
60 MCAPI void _copyLocalWorld(
61 ::LevelSummary const& world,
62 ::std::function<void(::WorldCopyProgressHandler::Result)> callback
63 ) const;
64
65 MCAPI void _displayCopyFailedModal(::std::function<void(::ModalScreenButtonId)> callback);
66
67 MCAPI void _downloadRealmsWorld(::Realms::World const& world);
68
69 MCAPI void _exit(::SelectWorldResult result);
70
71 MCAPI void _registerEventHandlers();
72 // NOLINTEND
73
74public:
75 // constructor thunks
76 // NOLINTBEGIN
77 MCAPI void* $ctor(
78 ::std::shared_ptr<::MainMenuScreenModel> model,
79 ::std::function<
80 void(::SelectWorldResult, ::optional_ref<::LevelSummary const>, ::optional_ref<::Realms::World const>)>
81 callback
82 );
83 // NOLINTEND
84
85public:
86 // virtual function thunks
87 // NOLINTBEGIN
88 MCAPI void $onEntered();
89
90 MCFOLD ::ui::SceneType $getSceneType() const;
91 // NOLINTEND
92
93public:
94 // vftables
95 // NOLINTBEGIN
97
98 MCNAPI static void** $vftableForScreenController();
99 // NOLINTEND
100};
Definition MainMenuScreenController.h:5
Definition MainMenuScreenModel.h:5
Definition SelectWorldScreenController.h:5
static MCAPI void ** $vftableForScreenController()
static MCAPI void ** $vftableForEnableNonOwnerReferences()
Definition LevelSummary.h:30
Definition World.h:7