LeviLamina
Loading...
Searching...
No Matches
Options.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/input/KeyboardType.h"
7#include "mc/client/options/BaseOptions.h"
8#include "mc/client/options/IOptions.h"
9#include "mc/deps/core/file/PathBuffer.h"
10#include "mc/deps/core/platform/FileStorageDirectory.h"
11#include "mc/deps/core/utility/NonOwnerPointer.h"
12#include "mc/deps/input/InputMode.h"
13#include "mc/deps/input/VRControllerType.h"
14#include "mc/deviceinfo/DeviceMemoryTier.h"
15#include "mc/options/GraphicsMode.h"
16#include "mc/options/option_types/OptionID.h"
17#include "mc/options/option_types/OptionResetFlags.h"
18
19// auto generated forward declare list
20// clang-format off
21class ChatOptions;
25class Option;
27class OptionsObserver;
29namespace Scripting { struct WatchdogSettings; }
30// clang-format on
31
32class Options : public ::BaseOptions {
33public:
34 // member variables
35 // NOLINTBEGIN
72 // NOLINTEND
73
74public:
75 // prevent constructor by default
76 Options& operator=(Options const&);
77 Options(Options const&);
78 Options();
79
80public:
81 // virtual functions
82 // NOLINTBEGIN
83 // vIndex: 0
84 virtual ~Options() /*override*/ = default;
85
86 // vIndex: 2
87 virtual void load(::Core::PathBuffer<::std::string>) /*override*/;
88
89 // vIndex: 3
90 virtual void tickSaveTimer() /*override*/;
91
92 // vIndex: 4
93 virtual void notifySaveAllowed() /*override*/;
94
95 // vIndex: 5
96 virtual void saveIfNeeded() /*override*/;
97
98 // vIndex: 6
99 virtual ::OptionSaveDeferral requestSaveDeferral() /*override*/;
100
101 // vIndex: 7
102 virtual void reset(::OptionResetFlags, ::InputMode) /*override*/;
103
104 // vIndex: 8
105 virtual bool getPrimaryUserStatus() const /*override*/;
106
107 // vIndex: 9
108 virtual void
109 setClientInstanceCoordinator(::Bedrock::NonOwnerPointer<::ClientInstanceEventCoordinator> const&) /*override*/;
110
111 // vIndex: 51
112 virtual ::FileStorageDirectory getFileStorageLocation() const /*override*/;
113
114 // vIndex: 50
115 virtual void setFileStorageLocation(::FileStorageDirectory, ::std::function<void(bool)>) /*override*/;
116
117 // vIndex: 10
118 virtual void onScreenSizeChanged(int, int) /*override*/;
119
120 // vIndex: 11
121 virtual bool isValidOption(::OptionID) const /*override*/;
122
123 // vIndex: 13
124 virtual ::gsl::not_null<::Option*> get(::OptionID) /*override*/;
125
126 // vIndex: 12
127 virtual ::gsl::not_null<::Option const*> get(::OptionID) const /*override*/;
128
129 // vIndex: 15
130 virtual ::std::optional<::Option*> getIfValid(::OptionID) /*override*/;
131
132 // vIndex: 14
133 virtual ::std::optional<::Option const*> getIfValid(::OptionID) const /*override*/;
134
135 // vIndex: 16
136 virtual void getTelemetryOptions(::std::vector<::OptionID>&) /*override*/;
137
138 // vIndex: 17
139 virtual void refreshRenderDistanceLevels() /*override*/;
140
141 // vIndex: 18
142 virtual bool isLoadInProgress() /*override*/;
143
144 // vIndex: 19
145 virtual void addObserver(::OptionsObserver&) /*override*/;
146
147 // vIndex: 20
148 virtual void loadOptionsFromString(::std::string) /*override*/;
149
150 // vIndex: 21
151 virtual void elevateSaveRequestMode(::IOptions::SaveRequestMode) /*override*/;
152
153 // vIndex: 23
154 virtual ::ChatOptions const& getChatOptions() const /*override*/;
155
156 // vIndex: 22
157 virtual ::ChatOptions& getChatOptions() /*override*/;
158
159 // vIndex: 24
160 virtual ::std::array<::std::unique_ptr<::Option>, 795> const& getAllRegisteredOptions() /*override*/;
161
162 // vIndex: 25
163 virtual void forEachOption(::std::function<void(::Option*)>) /*override*/;
164
165 // vIndex: 54
166 virtual int getViewDistanceChunks() const /*override*/;
167
168 // vIndex: 55
169 virtual int getDefaultViewDistanceChunks(bool, ::GraphicsMode) const /*override*/;
170
171 // vIndex: 56
172 virtual int getMaxViewDistanceChunks() const /*override*/;
173
174 // vIndex: 57
175 virtual int getMaxViewDistanceChunksRaw() const /*override*/;
176
177 // vIndex: 83
178 virtual bool getVRMirrorTexture() /*override*/;
179
180 // vIndex: 93
181 virtual bool getRayTracing() const /*override*/;
182
183 // vIndex: 94
184 virtual bool getDeferred() const /*override*/;
185
186 // vIndex: 105
187 virtual ::GamePadRemappingLayout& getGamePadRemappingByType(::VRControllerType) /*override*/;
188
189 // vIndex: 106
190 virtual ::std::shared_ptr<::KeyboardRemappingLayout> getCurrentKeyboardRemapping() const /*override*/;
191
192 // vIndex: 107
193 virtual ::std::shared_ptr<::KeyboardRemappingLayout> getKeyboardRemappingByType(::KeyboardType) const /*override*/;
194
195 // vIndex: 108
196 virtual ::GamePadRemappingLayout& getMotionControllerRemapping() /*override*/;
197
198 // vIndex: 109
199 virtual void setLanguage(::std::string const&) /*override*/;
200
201 // vIndex: 110
202 virtual ::std::string getLanguage() const /*override*/;
203
204 // vIndex: 136
205 virtual void setPlayerViewPerspective(int) /*override*/;
206
207 // vIndex: 151
208 virtual void setOverrideUsername(::std::string const&) /*override*/;
209
210 // vIndex: 152
211 virtual bool hasOverrideUsername() const /*override*/;
212
213 // vIndex: 153
214 virtual ::std::string const& getDisplayedUsername() const /*override*/;
215
216 // vIndex: 158
217 virtual void setRecentSkinIds(::std::vector<::std::string> const&) /*override*/;
218
219 // vIndex: 159
220 virtual ::std::vector<::std::string> const& getRecentSkinIds() /*override*/;
221
222 // vIndex: 351
223 virtual float getDefaultPlatformSafeZoneX() const /*override*/;
224
225 // vIndex: 352
226 virtual float getDefaultPlatformSafeZoneY() const /*override*/;
227
228 // vIndex: 353
229 virtual bool getServerboundClientDiagnosticsEnabled() const /*override*/;
230
231 // vIndex: 354
232 virtual ::ScriptDebuggerSettings getScriptDebuggerSettings() const /*override*/;
233
234 // vIndex: 355
235 virtual ::Scripting::WatchdogSettings getScriptWatchdogSettings() const /*override*/;
236
237 // vIndex: 88
238 virtual ::GraphicsMode getGraphicsMode() const /*override*/;
239
240 // vIndex: 95
241 virtual int getGraphicsQualityPresetMode() const /*override*/;
242
243 // vIndex: 371
244 virtual void setSaveDeferralCount(int) /*override*/;
245
246 // vIndex: 372
247 virtual int getSaveDeferralCount() const /*override*/;
248
249 // vIndex: 373
250 virtual ::std::optional<::DeviceMemoryTier> getScriptingMemoryTierOverride() const /*override*/;
251 // NOLINTEND
252
253public:
254 // virtual function thunks
255 // NOLINTBEGIN
256
257 // NOLINTEND
258};
Definition BaseOptions.h:27
Definition NonOwnerPointer.h:9
Definition ChatOptions.h:5
Definition ClientInstanceEventCoordinator.h:14
Definition PathBuffer.h:8
Definition GamePadRemappingLayout.h:15
Definition KeyboardRemappingLayout.h:5
Definition OptionSaveDeferral.h:5
Definition Option.h:17
Definition OptionsObserver.h:13
Definition Options.h:32
Definition ScriptDebuggerSettings.h:8
Definition Alias.h:14