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