3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/settings/IStringDataProvider.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::IStringPropertyHandler>> mDelegate;
26 ::ll::TypedStorage<8, 24, ::std::vector<::std::function<::Bedrock::PubSub::Subscription(::std::function<
void()>)>>>
27 mSubscriptionConnectors;
28 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mCachedValue;
29 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mLevelChangedSubscription;
30 ::ll::TypedStorage<8, 24, ::std::vector<::Bedrock::PubSub::Subscription>> mSubscriptions;
35 LevelStringDataProvider();
40 virtual bool canModify() const ;
42 virtual ::std::
string getValue() const ;
44 virtual
void setValue(::std::string_view value) ;
46 virtual
void commitValue() ;
48 virtual ~LevelStringDataProvider() ;
54 MCAPI LevelStringDataProvider(
55 ::std::function<::Bedrock::PubSub::Subscription(::std::function<
void(::LevelDataWrapper&)>)>
56 registerLevelChangeCallback,
57 ::std::vector<::std::function<::Bedrock::PubSub::Subscription(::std::function<
void()>)>> subscriptionConnectors,
58 ::std::unique_ptr<::Settings::IStringPropertyHandler> delegate
61 MCAPI
void _updateSubscriptions();
68 ::std::function<::Bedrock::PubSub::Subscription(::std::function<
void(::LevelDataWrapper&)>)>
69 registerLevelChangeCallback,
70 ::std::vector<::std::function<::Bedrock::PubSub::Subscription(::std::function<
void()>)>> subscriptionConnectors,
71 ::std::unique_ptr<::Settings::IStringPropertyHandler> delegate
84 MCFOLD
bool $canModify() const;
86 MCAPI ::std::
string $getValue() const;
88 MCAPI
void $setValue(::std::string_view value);
90 MCAPI
void $commitValue();
Definition LevelDataWrapper.h:14
Definition IStringPropertyHandler.h:7
Definition LevelStringDataProvider.h:7
static MCAPI void ** $vftable()