LeviLamina
Loading...
Searching...
No Matches
ServerFeatureFlagManagerServiceProvider.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/editor/FeatureFlagSource.h"
7#include "mc/deps/script_core/runtime/scripting/Result_deprecated.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace Bedrock::PubSub { class Subscription; }
12namespace Editor { struct FeatureFlagEntry; }
13// clang-format on
14
15namespace Editor::Services {
16
18public:
19 // virtual functions
20 // NOLINTBEGIN
22
23 virtual ::Scripting::Result_deprecated<void> registerGlobalFlag(
24 ::std::string const& name,
25 bool defaultValue,
26 ::Editor::FeatureFlagSource source,
27 ::std::string const& description,
28 bool readOnly
29 ) = 0;
30
31 virtual ::Scripting::Result_deprecated<void> setGlobalFlag(::std::string const& name, bool value) = 0;
32
33 virtual ::std::optional<bool> getGlobalFlag(::std::string const& name) const = 0;
34
35 virtual bool hasGlobalFlag(::std::string const& name) const = 0;
36
37 virtual ::std::vector<::Editor::FeatureFlagEntry> getSnapshot() const = 0;
38
39 virtual ::Bedrock::PubSub::Subscription
40 listenForGlobalFlagChanged(::std::function<void(::Editor::FeatureFlagEntry const&)> func) = 0;
41 // NOLINTEND
42};
43
44} // namespace Editor::Services
Definition Subscription.h:10
Definition ServerFeatureFlagManagerServiceProvider.h:17
Definition FeatureFlagEntry.h:7