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 MCNAPI LevelStringDataProvider(
54 registerLevelChangeCallback,
55 ::
std::vector<::
std::function<::Bedrock::PubSub::Subscription(::
std::function<
void()>)>> subscriptionConnectors,
65 registerLevelChangeCallback,
66 ::
std::vector<::
std::function<::Bedrock::PubSub::Subscription(::
std::function<
void()>)>> subscriptionConnectors,
Definition LevelDataWrapper.h:14
Definition IStringPropertyHandler.h:7
Definition LevelStringDataProvider.h:7
MCAPI void $setValue(::std::string_view value)
MCAPI void * $ctor(::std::function<::Bedrock::PubSub::Subscription(::std::function< void(::LevelDataWrapper &)>)> registerLevelChangeCallback, ::std::vector<::std::function<::Bedrock::PubSub::Subscription(::std::function< void()>)> > subscriptionConnectors, ::std::unique_ptr<::Settings::IStringPropertyHandler > delegate)
MCAPI bool $canModify() const
MCAPI void $commitValue()
MCAPI::std::string $getValue() const