LeviLamina
Loading...
Searching...
No Matches
LevelStringDataProvider.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/settings/IStringDataProvider.h"
7#include "mc/deps/core/utility/pub_sub/Subscription.h"
8
9// auto generated forward declare list
10// clang-format off
12namespace Settings { class IStringPropertyHandler; }
13// clang-format on
14
15namespace Settings {
16
17class LevelStringDataProvider : public ::Settings::IStringDataProvider {
18public:
19 // LevelStringDataProvider inner types define
20 using SubscriptionConnector = ::std::function<::Bedrock::PubSub::Subscription(::std::function<void()>)>;
21
22public:
23 // member variables
24 // NOLINTBEGIN
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;
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
35 LevelStringDataProvider();
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 virtual bool canModify() const /*override*/;
41
42 virtual ::std::string getValue() const /*override*/;
43
44 virtual void setValue(::std::string_view value) /*override*/;
45
46 virtual void commitValue() /*override*/;
47 // NOLINTEND
48
49public:
50 // member functions
51 // NOLINTBEGIN
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
57 );
58
59 MCAPI void _updateSubscriptions();
60 // NOLINTEND
61
62public:
63 // constructor thunks
64 // NOLINTBEGIN
65 MCAPI void* $ctor(
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
70 );
71 // NOLINTEND
72
73public:
74 // virtual function thunks
75 // NOLINTBEGIN
76 MCFOLD bool $canModify() const;
77
78 MCAPI ::std::string $getValue() const;
79
80 MCAPI void $setValue(::std::string_view value);
81
82 MCAPI void $commitValue();
83 // NOLINTEND
84
85public:
86 // vftables
87 // NOLINTBEGIN
88 MCNAPI static void** $vftable();
89 // NOLINTEND
90};
91
92} // namespace Settings
Definition LevelDataWrapper.h:14
Definition IStringPropertyHandler.h:7
Definition LevelStringDataProvider.h:7
static MCAPI void ** $vftable()