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 OptionData; }
11// clang-format on
12
13namespace Settings {
14
15class AsyncOptionsDataProvider : public ::Settings::IOptionsDataProvider {
16public:
17 // member variables
18 // NOLINTBEGIN
19 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::Settings::IOptionsDataProvider>> mDelegateProvider;
20 ::ll::TypedStorage<8, 64, ::std::function<void()>> mChangeCallback;
21 ::ll::TypedStorage<4, 8, ::std::optional<int>> mPendingValue;
22 // NOLINTEND
23
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 virtual ~AsyncOptionsDataProvider() /*override*/ = default;
28
29 virtual void setChangeListener(::std::function<void()> callback) /*override*/;
30
31 virtual bool canModify() const /*override*/;
32
33 virtual ::gsl::span<::Settings::OptionData const> getOptions() const /*override*/;
34
35 virtual int getValue() const /*override*/;
36
37 virtual void setValue(int value) /*override*/;
38
39 virtual ::std::optional<::std::string> const& getInfo() const /*override*/;
40
41 virtual bool flush() /*override*/;
42 // NOLINTEND
43
44public:
45 // virtual function thunks
46 // NOLINTBEGIN
47 MCAPI void $setChangeListener(::std::function<void()> callback);
48
49 MCFOLD bool $canModify() const;
50
51 MCAPI ::gsl::span<::Settings::OptionData const> $getOptions() const;
52
53 MCAPI int $getValue() const;
54
55 MCFOLD void $setValue(int value);
56
57 MCFOLD ::std::optional<::std::string> const& $getInfo() const;
58
59 MCAPI bool $flush();
60 // NOLINTEND
61
62public:
63 // vftables
64 // NOLINTBEGIN
65 MCNAPI static void** $vftable();
66 // NOLINTEND
67};
68
69} // namespace Settings
Definition AsyncOptionsDataProvider.h:7
static MCAPI void ** $vftable()
Definition OptionData.h:7