Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
LevelBooleanDataProvider.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/settings/IBooleanDataProvider.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 IBooleanPropertyHandler; }
13// clang-format on
14
15namespace Settings {
16
17class LevelBooleanDataProvider : public ::Settings::IBooleanDataProvider {
18public:
19 // LevelBooleanDataProvider 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::IBooleanPropertyHandler>> mDelegate;
26 ::ll::TypedStorage<8, 24, ::std::vector<::std::function<::Bedrock::PubSub::Subscription(::std::function<void()>)>>>
27 mSubscriptionConnectors;
28 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mLevelChangedSubscription;
29 ::ll::TypedStorage<8, 24, ::std::vector<::Bedrock::PubSub::Subscription>> mSubscriptions;
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 LevelBooleanDataProvider();
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 virtual bool canModify() const /*override*/;
40
41 virtual bool getValue() const /*override*/;
42
43 virtual void setValue(bool value) /*override*/;
44 // NOLINTEND
45
46public:
47 // member functions
48 // NOLINTBEGIN
49 MCNAPI LevelBooleanDataProvider(
50 ::std::function<::Bedrock::PubSub::Subscription(::std::function<void(::LevelDataWrapper&)>)>
51 registerLevelChangeCallback,
52 ::std::vector<::std::function<::Bedrock::PubSub::Subscription(::std::function<void()>)>> subscriptionConnectors,
53 ::std::unique_ptr<::Settings::IBooleanPropertyHandler> delegate
54 );
55 // NOLINTEND
56
57public:
58 // constructor thunks
59 // NOLINTBEGIN
60 MCNAPI void* $ctor(
61 ::std::function<::Bedrock::PubSub::Subscription(::std::function<void(::LevelDataWrapper&)>)>
62 registerLevelChangeCallback,
63 ::std::vector<::std::function<::Bedrock::PubSub::Subscription(::std::function<void()>)>> subscriptionConnectors,
64 ::std::unique_ptr<::Settings::IBooleanPropertyHandler> delegate
65 );
66 // NOLINTEND
67
68public:
69 // virtual function thunks
70 // NOLINTBEGIN
71 MCNAPI bool $canModify() const;
72
73 MCNAPI bool $getValue() const;
74
75 MCNAPI void $setValue(bool value);
76 // NOLINTEND
77};
78
79} // namespace Settings
Definition LevelDataWrapper.h:14
Definition IBooleanPropertyHandler.h:7
Definition LevelBooleanDataProvider.h:7
MCAPI void $setValue(bool 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::IBooleanPropertyHandler > delegate)
STL namespace.