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
48 virtual ~LevelStringDataProvider() /*override*/;
49 // NOLINTEND
50
51public:
52 // member functions
53 // NOLINTBEGIN
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
59 );
60
61 MCAPI void _updateSubscriptions();
62 // NOLINTEND
63
64public:
65 // constructor thunks
66 // NOLINTBEGIN
67 MCAPI void* $ctor(
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
72 );
73 // NOLINTEND
74
75public:
76 // destructor thunk
77 // NOLINTBEGIN
78 MCAPI void $dtor();
79 // NOLINTEND
80
81public:
82 // virtual function thunks
83 // NOLINTBEGIN
84 MCFOLD bool $canModify() const;
85
86 MCAPI ::std::string $getValue() const;
87
88 MCAPI void $setValue(::std::string_view value);
89
90 MCAPI void $commitValue();
91 // NOLINTEND
92
93public:
94 // vftables
95 // NOLINTBEGIN
96 MCNAPI static void** $vftable();
97 // NOLINTEND
98};
99
100} // namespace Settings
Definition LevelDataWrapper.h:14
Definition IStringPropertyHandler.h:7
Definition LevelStringDataProvider.h:7
static MCAPI void ** $vftable()