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/deviceinfo/DeviceMemoryTier.h"
14#include "mc/options/GraphicsMode.h"
15#include "mc/options/option_types/OptionID.h"
16#include "mc/options/option_types/OptionResetFlags.h"
17
18// auto generated forward declare list
19// clang-format off
20class ChatOptions;
24class Option;
26class OptionsObserver;
28namespace Scripting { struct WatchdogSettings; }
29// clang-format on
30
31class Options : public ::BaseOptions {
32public:
33 // member variables
34 // NOLINTBEGIN
67 // NOLINTEND
68
69public:
70 // prevent constructor by default
71 Options& operator=(Options const&);
72 Options(Options const&);
73 Options();
74
75public:
76 // virtual functions
77 // NOLINTBEGIN
78 // vIndex: 0
79 virtual ~Options() /*override*/ = default;
80
81 // vIndex: 16
82 virtual void load(::Core::PathBuffer<::std::string>) /*override*/;
83
84 // vIndex: 17
85 virtual void tickSaveTimer() /*override*/;
86
87 // vIndex: 18
88 virtual void notifySaveAllowed() /*override*/;
89
90 // vIndex: 19
91 virtual void saveIfNeeded() /*override*/;
92
93 // vIndex: 20
94 virtual ::OptionSaveDeferral requestSaveDeferral() /*override*/;
95
96 // vIndex: 21
97 virtual void reset(::OptionResetFlags, ::InputMode) /*override*/;
98
99 // vIndex: 22
100 virtual bool getPrimaryUserStatus() const /*override*/;
101
102 // vIndex: 23
103 virtual void
104 setClientInstanceCoordinator(::Bedrock::NonOwnerPointer<::ClientInstanceEventCoordinator> const&) /*override*/;
105
106 // vIndex: 62
107 virtual ::FileStorageDirectory getFileStorageLocation() const /*override*/;
108
109 // vIndex: 61
110 virtual void setFileStorageLocation(::FileStorageDirectory, ::std::function<void(bool)>) /*override*/;
111
112 // vIndex: 24
113 virtual void onScreenSizeChanged(int, int) /*override*/;
114
115 // vIndex: 25
116 virtual bool isValidOption(::OptionID) const /*override*/;
117
118 // vIndex: 26
119 virtual ::gsl::not_null<::Option*> get(::OptionID) /*override*/;
120
121 // vIndex: 1
122 virtual ::gsl::not_null<::Option const*> get(::OptionID) const /*override*/;
123
124 // vIndex: 28
125 virtual ::std::optional<::Option*> getIfValid(::OptionID) /*override*/;
126
127 // vIndex: 27
128 virtual ::std::optional<::Option const*> getIfValid(::OptionID) const /*override*/;
129
130 // vIndex: 29
131 virtual void getTelemetryOptions(::std::vector<::OptionID>&) /*override*/;
132
133 // vIndex: 30
134 virtual void refreshRenderDistanceLevels() /*override*/;
135
136 // vIndex: 31
137 virtual bool isLoadInProgress() /*override*/;
138
139 // vIndex: 32
140 virtual void addObserver(::OptionsObserver&) /*override*/;
141
142 // vIndex: 33
143 virtual void loadOptionsFromString(::std::string) /*override*/;
144
145 // vIndex: 34
146 virtual void elevateSaveRequestMode(::IOptions::SaveRequestMode) /*override*/;
147
148 // vIndex: 36
149 virtual ::ChatOptions const& getChatOptions() const /*override*/;
150
151 // vIndex: 35
152 virtual ::ChatOptions& getChatOptions() /*override*/;
153
154 // vIndex: 37
155 virtual ::std::array<::std::unique_ptr<::Option>, 770> const& getAllRegisteredOptions() /*override*/;
156
157 // vIndex: 38
158 virtual void forEachOption(::std::function<void(::Option*)>) /*override*/;
159
160 // vIndex: 64
161 virtual int getViewDistanceChunks() const /*override*/;
162
163 // vIndex: 65
164 virtual int getDefaultViewDistanceChunks(::GraphicsMode) const /*override*/;
165
166 // vIndex: 10
167 virtual int getMaxViewDistanceChunks() const /*override*/;
168
169 // vIndex: 66
170 virtual int getMaxViewDistanceChunksRaw() const /*override*/;
171
172 // vIndex: 77
173 virtual bool getRayTracing() const /*override*/;
174
175 // vIndex: 78
176 virtual bool getDeferred() const /*override*/;
177
178 // vIndex: 90
179 virtual ::GamePadRemappingLayout& getGamePadRemapping() /*override*/;
180
181 // vIndex: 91
182 virtual ::std::shared_ptr<::KeyboardRemappingLayout> getCurrentKeyboardRemapping() const /*override*/;
183
184 // vIndex: 92
185 virtual ::std::shared_ptr<::KeyboardRemappingLayout> getKeyboardRemappingByType(::KeyboardType) const /*override*/;
186
187 // vIndex: 93
188 virtual void setLanguage(::std::string const&) /*override*/;
189
190 // vIndex: 94
191 virtual ::std::string getLanguage() const /*override*/;
192
193 // vIndex: 120
194 virtual void setPlayerViewPerspective(int) /*override*/;
195
196 // vIndex: 137
197 virtual void setRecentSkinIds(::std::vector<::std::string> const&) /*override*/;
198
199 // vIndex: 138
200 virtual ::std::vector<::std::string> const& getRecentSkinIds() /*override*/;
201
202 // vIndex: 318
203 virtual float getDefaultPlatformSafeZoneX() const /*override*/;
204
205 // vIndex: 319
206 virtual float getDefaultPlatformSafeZoneY() const /*override*/;
207
208 // vIndex: 320
209 virtual bool getServerboundClientDiagnosticsEnabled() const /*override*/;
210
211 // vIndex: 321
212 virtual ::ScriptDebuggerSettings getScriptDebuggerSettings() const /*override*/;
213
214 // vIndex: 322
215 virtual ::Scripting::WatchdogSettings getScriptWatchdogSettings() const /*override*/;
216
217 // vIndex: 11
218 virtual ::GraphicsMode getGraphicsMode() const /*override*/;
219
220 // vIndex: 79
221 virtual int getGraphicsQualityPresetMode() const /*override*/;
222
223 // vIndex: 80
224 virtual int getDeferredTargetFrameRate() const /*override*/;
225
226 // vIndex: 338
227 virtual void setSaveDeferralCount(int) /*override*/;
228
229 // vIndex: 339
230 virtual int getSaveDeferralCount() const /*override*/;
231
232 // vIndex: 9
233 virtual ::std::optional<::DeviceMemoryTier> getScriptingMemoryTierOverride() const /*override*/;
234
235 // vIndex: 340
236 virtual void setForceVibrantVisualsDisabled(bool) /*override*/;
237 // NOLINTEND
238
239public:
240 // virtual function thunks
241 // NOLINTBEGIN
242
243 // NOLINTEND
244};
Definition BaseOptions.h:26
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:18
Definition OptionsObserver.h:13
Definition Options.h:31
Definition ScriptDebuggerSettings.h:8
Definition Alias.h:14