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() ;
52 MCAPI LevelStringDataProvider(
53 ::std::function<::Bedrock::PubSub::Subscription(::std::function<
void(::LevelDataWrapper&)>)>
54 registerLevelChangeCallback,
55 ::std::vector<::std::function<::Bedrock::PubSub::Subscription(::std::function<
void()>)>> subscriptionConnectors,
56 ::std::unique_ptr<::Settings::IStringPropertyHandler> delegate
59 MCAPI
void _updateSubscriptions();
66 ::std::function<::Bedrock::PubSub::Subscription(::std::function<
void(::LevelDataWrapper&)>)>
67 registerLevelChangeCallback,
68 ::std::vector<::std::function<::Bedrock::PubSub::Subscription(::std::function<
void()>)>> subscriptionConnectors,
69 ::std::unique_ptr<::Settings::IStringPropertyHandler> delegate
76 MCFOLD
bool $canModify() const;
78 MCAPI ::std::
string $getValue() const;
80 MCAPI
void $setValue(::std::string_view value);
82 MCAPI
void $commitValue();
Definition LevelDataWrapper.h:14
Definition IStringPropertyHandler.h:7
Definition LevelStringDataProvider.h:7
static MCAPI void ** $vftable()