3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/settings/IBooleanDataProvider.h"
14 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::Settings::IBooleanDataProvider>> mDelegateProvider;
15 ::ll::TypedStorage<8, 64, ::std::function<void()>> mChangeCallback;
16 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mPendingValue;
21 AsyncBooleanDataProvider();
26 virtual ~AsyncBooleanDataProvider() =
default;
28 virtual void setChangeListener(::std::function<
void()> callback) ;
30 virtual bool canModify() const ;
32 virtual
bool getValue() const ;
34 virtual
void setValue(
bool value) ;
36 virtual
bool flush() ;
42 MCAPI explicit AsyncBooleanDataProvider(::std::unique_ptr<::Settings::IBooleanDataProvider> delegateProvider);
48 MCAPI
void* $ctor(::std::unique_ptr<::Settings::IBooleanDataProvider> delegateProvider);
54 MCAPI
void $setChangeListener(::std::function<
void()> callback);
56 MCFOLD
bool $canModify() const;
58 MCAPI
bool $getValue() const;
60 MCAPI
void $setValue(
bool value);
Definition AsyncBooleanDataProvider.h:7
static MCAPI void ** $vftable()