3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/ViewRequest.h"
7#include "mc/client/gui/screens/controllers/MainMenuScreenController.h"
8#include "mc/client/gui/screens/controllers/ModalScreenButtonId.h"
9#include "mc/client/gui/screens/controllers/SettingsScreenMode.h"
10#include "mc/client/world/PostCreateWorldAction.h"
11#include "mc/options/option_types/OptionID.h"
12#include "mc/world/level/NetherWorldType.h"
25namespace Json {
class Value; }
26namespace Realms {
struct World; }
32 using BooleanOptionGetter = ::std::function<bool()>;
34 using BooleanOptionSetter = ::std::function<void(
bool)>;
36 using StringOptionSetter = ::std::function<void(::std::string
const&)>;
38 using StringValidator = ::std::function<bool(::std::string
const&)>;
40 using StringFinished = ::std::function<void()>;
42 using IntegerOptionGetter = ::std::function<int()>;
44 using IntegerOptionSetter = ::std::function<void(
int)>;
49 virtual ~SettingsScreenControllerBase() ;
51 virtual void addStaticScreenVars(::Json::Value& globalVars) ;
53 virtual void _displayLockedWorldPopup();
59 MCAPI
void _addResourcePacks(::LocalWorldInfo
const& worldInfo);
61 MCAPI
bool _copyResourcePacks(
62 ::PackManagerContentSource* worldContentSource,
63 ::IContentManager& contentManager,
64 ::LevelSummary levelSummary,
65 ::std::function<
void()> progressCallback
68 MCAPI ::ui::ViewRequest _createWorld(
69 ::Experiments* experiments,
70 ::SettingsScreenMode settingsMode,
71 ::LevelSeed64 levelSeed,
72 ::LevelSummary levelSummary,
73 ::LevelDataWrapper& levelData,
74 ::SpawnSettings spawnSettings,
75 ::NetherWorldType netherType,
76 ::PackManagerContentSource* worldContentSource,
77 ::IContentManager& contentManager,
78 ::PostCreateWorldAction postCreateWorldAction,
79 ::DlcUIWrapper* dlcUIWrapper,
80 ::Realms::World& realmWorld,
81 ::std::function<
void(::std::function<
void()>)> postUploadWorldToRealm
84 MCAPI
void _initLevelData(::LevelDataWrapper& levelData,
bool platformMultiplayerRestrictions);
86 MCAPI
void _initNewWorldLevelData(::LevelDataWrapper& levelData);
88 MCAPI ::ui::ViewRequest _playWorld(
89 ::SettingsScreenMode settingsMode,
90 ::LevelSummary
const& levelSummary,
91 ::LevelDataWrapper& levelData,
92 ::PackManagerContentSource* worldContentSource,
93 ::IContentManager& contentManager,
94 ::DlcUIWrapper* dlcUIWrapper
97 MCAPI
void _removeResourcePacks();
99 MCAPI
void confirmationHardcoreDialog(::std::function<
void(::ModalScreenButtonId)> callback);
101 MCAPI
void confirmationNoAchievementsDialog(::std::function<
void(::ModalScreenButtonId)> callback);
103 MCAPI
void setUpCallbacksForBooleanOption(::OptionID optionID, ::std::string
const& toggleName);
105 MCAPI
void setUpCallbacksForBooleanOption(
107 ::std::string
const& toggleName,
108 ::std::string
const& valueBindingName,
109 ::std::string
const& enabledBindingName
112 MCAPI
void setUpCallbacksForBooleanOption(
113 ::std::string
const& toggleName,
114 ::std::string
const& valueBindingName,
115 ::std::string
const& enabledBindingName,
116 ::std::function<
bool()> isEnabled,
117 ::std::function<
bool()> getValue,
118 ::std::function<
void(
bool)> setValue
121 MCAPI
void setupCallbacksForStringOption(
123 ::std::string
const& textboxName,
124 ::std::function<
bool(::std::string
const&)> changedValidator,
125 ::std::function<
bool(::std::string
const&)> finishedValidator
128 MCAPI
void setupCallbacksForStringOption(
130 ::std::string
const& textboxName,
131 ::std::string
const& valueBindingName,
132 ::std::string
const& enabledBindingName,
133 ::std::function<
bool(::std::string
const&)> changedValidator,
134 ::std::function<
bool(::std::string
const&)> finishedValidator
137 MCAPI
void setupCallbacksForStringOption(
138 ::std::string
const& textboxName,
139 ::std::string
const& valueBindingName,
140 ::std::string
const& enabledBindingName,
141 ::std::function<
bool()> isEnabled,
142 ::std::function<::std::string()> getValue,
143 ::std::function<
void(::std::string
const&)> setValue,
144 ::std::function<
bool(::std::string
const&)> changedValidator,
145 ::std::function<
bool(::std::string
const&)> finishedValidator,
146 ::std::function<
void()> onFinished
159 MCFOLD
void $addStaticScreenVars(::Json::Value& globalVars);
161 MCAPI
void $_displayLockedWorldPopup();
Definition DlcUIWrapper.h:5
Definition Experiments.h:14
Definition IContentManager.h:5
Definition LevelDataWrapper.h:14
Definition LevelSeed64.h:5
Definition MainMenuScreenController.h:5
Definition SettingsScreenControllerBase.h:5
static MCAPI void ** $vftableForScreenController()
static MCAPI void ** $vftableForEnableNonOwnerReferences()
Definition LevelSummary.h:30
Definition LocalWorldInfo.h:5
Definition PackManagerContentSource.h:5
Definition SpawnSettings.h:14