LeviLamina
Loading...
Searching...
No Matches
GraphicsModeDataProvider.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/settings/IOptionsDataProvider.h"
7#include "mc/client/settings/LocStringData.h"
8#include "mc/deps/core/utility/pub_sub/Subscription.h"
9#include "mc/options/option_types/OptionID.h"
10
11// auto generated forward declare list
12// clang-format off
13class IOptionRegistry;
14namespace Settings { struct OptionData; }
15namespace Settings::RegistryBuilder { class IBuilderContext; }
16// clang-format on
17
18namespace Settings {
19
20class GraphicsModeDataProvider : public ::Settings::IOptionsDataProvider {
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<4, 4, ::OptionID> mOptionId;
25 ::ll::TypedStorage<8, 8, ::IOptionRegistry&> mOptions;
26 ::ll::TypedStorage<8, 8, ::Settings::RegistryBuilder::IBuilderContext&> mContext;
27 ::ll::TypedStorage<8, 24, ::std::vector<::Settings::OptionData>> mDropdownOptions;
28 ::ll::TypedStorage<
29 8,
30 80,
31 ::std::optional<::std::variant<::std::string, ::std::function<::std::string()>, ::Settings::LocStringData>>>
32 mInfo;
33 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mSubscription;
34 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mResetSubscription;
35 ::ll::TypedStorage<4, 8, ::std::optional<int>> mPendingValue;
36 // NOLINTEND
37
38public:
39 // prevent constructor by default
40 GraphicsModeDataProvider& operator=(GraphicsModeDataProvider const&);
41 GraphicsModeDataProvider(GraphicsModeDataProvider const&);
42 GraphicsModeDataProvider();
43
44public:
45 // virtual functions
46 // NOLINTBEGIN
47 virtual bool canModify() const /*override*/;
48
49 virtual ::gsl::span<::Settings::OptionData const> getOptions() const /*override*/;
50
51 virtual int getValue() const /*override*/;
52
53 virtual void setValue(int value) /*override*/;
54
55 virtual ::std::optional<
56 ::std::variant<::std::string, ::std::function<::std::string()>, ::Settings::LocStringData>> const&
57 getInfo() const /*override*/;
58
59 virtual bool flush() /*override*/;
60 // NOLINTEND
61
62public:
63 // member functions
64 // NOLINTBEGIN
65 MCAPI GraphicsModeDataProvider(::OptionID optionId, ::Settings::RegistryBuilder::IBuilderContext& context);
66 // NOLINTEND
67
68public:
69 // constructor thunks
70 // NOLINTBEGIN
71 MCAPI void* $ctor(::OptionID optionId, ::Settings::RegistryBuilder::IBuilderContext& context);
72 // NOLINTEND
73
74public:
75 // virtual function thunks
76 // NOLINTBEGIN
77 MCAPI bool $canModify() const;
78
79 MCAPI ::gsl::span<::Settings::OptionData const> $getOptions() const;
80
81 MCAPI int $getValue() const;
82
83 MCAPI void $setValue(int value);
84
85 MCFOLD ::std::optional<
86 ::std::variant<::std::string, ::std::function<::std::string()>, ::Settings::LocStringData>> const&
87 $getInfo() const;
88
89 MCAPI bool $flush();
90 // NOLINTEND
91
92public:
93 // vftables
94 // NOLINTBEGIN
95 MCNAPI static void** $vftable();
96 // NOLINTEND
97};
98
99} // namespace Settings
Definition IOptionRegistry.h:5
Definition GraphicsModeDataProvider.h:7
static MCAPI void ** $vftable()
Definition IBuilderContext.h:7
Definition OptionData.h:7