LeviLamina
Loading...
Searching...
No Matches
IFeature.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Bedrock::PubSub { class Subscription; }
8// clang-format on
9
10namespace OreUI {
11
12class IFeature {
13public:
14 // IFeature inner types define
15 using OnEnabledChangedCallback = ::std::function<void(bool)>;
16
17public:
18 // virtual functions
19 // NOLINTBEGIN
20 virtual ~IFeature() = default;
21
22 virtual bool isEnabled() const = 0;
23
24 virtual void registerIsEnabledChangedCallback(::Bedrock::PubSub::Subscription&, ::std::function<void(bool)>) = 0;
25 // NOLINTEND
26
27public:
28 // virtual function thunks
29 // NOLINTBEGIN
30
31 // NOLINTEND
32};
33
34} // namespace OreUI
Definition Subscription.h:10
Definition IFeature.h:7