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
45 virtual ~LevelBooleanDataProvider() /*override*/ = default;
46 // NOLINTEND
47
48public:
49 // member functions
50 // NOLINTBEGIN
51 MCAPI LevelBooleanDataProvider(
52 ::std::function<::Bedrock::PubSub::Subscription(::std::function<void(::LevelDataWrapper&)>)>
53 registerLevelChangeCallback,
54 ::std::vector<::std::function<::Bedrock::PubSub::Subscription(::std::function<void()>)>> subscriptionConnectors,
55 ::std::unique_ptr<::Settings::IBooleanPropertyHandler> delegate
56 );
57
58 MCAPI void _updateSubscriptions();
59 // NOLINTEND
60
61public:
62 // constructor thunks
63 // NOLINTBEGIN
64 MCAPI void* $ctor(
65 ::std::function<::Bedrock::PubSub::Subscription(::std::function<void(::LevelDataWrapper&)>)>
66 registerLevelChangeCallback,
67 ::std::vector<::std::function<::Bedrock::PubSub::Subscription(::std::function<void()>)>> subscriptionConnectors,
68 ::std::unique_ptr<::Settings::IBooleanPropertyHandler> delegate
69 );
70 // NOLINTEND
71
72public:
73 // virtual function thunks
74 // NOLINTBEGIN
75 MCFOLD bool $canModify() const;
76
77 MCFOLD bool $getValue() const;
78
79 MCAPI void $setValue(bool value);
80 // NOLINTEND
81
82public:
83 // vftables
84 // NOLINTBEGIN
85 MCNAPI static void** $vftable();
86 // NOLINTEND
87};
88
89} // namespace Settings
Definition LevelDataWrapper.h:14
Definition IBooleanPropertyHandler.h:7
Definition LevelBooleanDataProvider.h:7
static MCAPI void ** $vftable()