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