3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/settings/IBooleanDataProvider.h"
7#include "mc/deps/core/utility/pub_sub/Subscription.h"
20 using SubscriptionConnector = ::std::function<::Bedrock::PubSub::Subscription(::std::function<
void()>)>;
25 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Settings::IBooleanPropertyHandler>> mDelegate;
26 ::ll::TypedStorage<8, 24, ::std::vector<::std::function<::Bedrock::PubSub::Subscription(::std::function<
void()>)>>>
27 mSubscriptionConnectors;
28 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mLevelChangedSubscription;
29 ::ll::TypedStorage<8, 24, ::std::vector<::Bedrock::PubSub::Subscription>> mSubscriptions;
34 LevelBooleanDataProvider();
39 virtual bool canModify() const ;
41 virtual
bool getValue() const ;
43 virtual
void setValue(
bool value) ;
45 virtual ~LevelBooleanDataProvider() = default;
51 MCAPI LevelBooleanDataProvider(
52 ::std::function<::Bedrock::PubSub::Subscription(::std::function<
void(::LevelDataWrapper&)>)>
53 registerLevelChangeCallback,
54 ::std::vector<::std::function<::Bedrock::PubSub::Subscription(::std::function<
void()>)>> subscriptionConnectors,
55 ::std::unique_ptr<::Settings::IBooleanPropertyHandler> delegate
58 MCAPI
void _updateSubscriptions();
65 ::std::function<::Bedrock::PubSub::Subscription(::std::function<
void(::LevelDataWrapper&)>)>
66 registerLevelChangeCallback,
67 ::std::vector<::std::function<::Bedrock::PubSub::Subscription(::std::function<
void()>)>> subscriptionConnectors,
68 ::std::unique_ptr<::Settings::IBooleanPropertyHandler> delegate
75 MCFOLD
bool $canModify() const;
77 MCFOLD
bool $getValue() const;
79 MCAPI
void $setValue(
bool value);
Definition LevelDataWrapper.h:14
Definition IBooleanPropertyHandler.h:7
Definition LevelBooleanDataProvider.h:7
static MCAPI void ** $vftable()