LeviLamina
Loading...
Searching...
No Matches
ServerFeatureFlagManagerService.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/common/editor/ServerFeatureFlagManagerServiceProvider.h"
8#include "mc/deps/script_core/runtime/scripting/Result_deprecated.h"
9#include "mc/editor/services/IEditorService.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace Bedrock::PubSub { class Subscription; }
14namespace Editor { class ServiceProviderCollection; }
15namespace Editor { struct FeatureFlagEntry; }
16// clang-format on
17
18namespace Editor::Services {
19
20class ServerFeatureFlagManagerService : public ::Editor::Services::IEditorService,
22public:
23 // member variables
24 // NOLINTBEGIN
28 // NOLINTEND
29
30public:
31 // prevent constructor by default
32 ServerFeatureFlagManagerService& operator=(ServerFeatureFlagManagerService const&);
33 ServerFeatureFlagManagerService(ServerFeatureFlagManagerService const&);
34 ServerFeatureFlagManagerService();
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 virtual ~ServerFeatureFlagManagerService() /*override*/ = default;
40
41 virtual ::Scripting::Result_deprecated<void> init() /*override*/;
42
43 virtual ::Scripting::Result_deprecated<void> ready() /*override*/;
44
45 virtual ::Scripting::Result_deprecated<void> quit() /*override*/;
46
47 virtual ::std::string_view getServiceName() const /*override*/;
48
49 virtual ::Scripting::Result_deprecated<void> registerGlobalFlag(
50 ::std::string const& name,
51 bool defaultValue,
52 ::Editor::FeatureFlagSource source,
53 ::std::string const& description,
54 bool readOnly
55 ) /*override*/;
56
57 virtual ::Scripting::Result_deprecated<void> setGlobalFlag(::std::string const& name, bool value) /*override*/;
58
59 virtual ::std::optional<bool> getGlobalFlag(::std::string const& name) const /*override*/;
60
61 virtual bool hasGlobalFlag(::std::string const& name) const /*override*/;
62
63 virtual ::std::vector<::Editor::FeatureFlagEntry> getSnapshot() const /*override*/;
64
65 virtual ::Bedrock::PubSub::Subscription
66 listenForGlobalFlagChanged(::std::function<void(::Editor::FeatureFlagEntry const&)> func) /*override*/;
67 // NOLINTEND
68
69public:
70 // member functions
71 // NOLINTBEGIN
72 MCNAPI ServerFeatureFlagManagerService(::Editor::ServiceProviderCollection& providers, bool isDedicatedServer);
73 // NOLINTEND
74
75public:
76 // static variables
77 // NOLINTBEGIN
78 MCNAPI static ::std::string_view const& ServiceName();
79 // NOLINTEND
80
81public:
82 // constructor thunks
83 // NOLINTBEGIN
84 MCNAPI void* $ctor(::Editor::ServiceProviderCollection& providers, bool isDedicatedServer);
85 // NOLINTEND
86
87public:
88 // virtual function thunks
89 // NOLINTBEGIN
90 MCNAPI ::Scripting::Result_deprecated<void> $init();
91
92 MCNAPI ::Scripting::Result_deprecated<void> $ready();
93
94 MCNAPI ::Scripting::Result_deprecated<void> $quit();
95
96 MCNAPI ::std::string_view $getServiceName() const;
97
98 MCNAPI ::Scripting::Result_deprecated<void> $registerGlobalFlag(
99 ::std::string const& name,
100 bool defaultValue,
101 ::Editor::FeatureFlagSource source,
102 ::std::string const& description,
103 bool readOnly
104 );
105
106 MCNAPI ::Scripting::Result_deprecated<void> $setGlobalFlag(::std::string const& name, bool value);
107
108 MCNAPI ::std::optional<bool> $getGlobalFlag(::std::string const& name) const;
109
110 MCNAPI bool $hasGlobalFlag(::std::string const& name) const;
111
112 MCNAPI ::std::vector<::Editor::FeatureFlagEntry> $getSnapshot() const;
113
114 MCNAPI ::Bedrock::PubSub::Subscription
115 $listenForGlobalFlagChanged(::std::function<void(::Editor::FeatureFlagEntry const&)> func);
116
117
118 // NOLINTEND
119
120public:
121 // vftables
122 // NOLINTBEGIN
124
125 MCNAPI static void** $vftableForIEditorService();
126 // NOLINTEND
127};
128
129} // namespace Editor::Services
Definition Subscription.h:10
Definition ServiceProviderCollection.h:7
Definition IEditorService.h:11
Definition ServerFeatureFlagManagerServiceProvider.h:17
MCAPI void * $ctor(::Editor::ServiceProviderCollection &providers, bool isDedicatedServer)
MCAPI ServerFeatureFlagManagerService(::Editor::ServiceProviderCollection &providers, bool isDedicatedServer)
MCAPI ::Scripting::Result_deprecated< void > $quit()
MCAPI ::std::optional< bool > $getGlobalFlag(::std::string const &name) const
MCAPI bool $hasGlobalFlag(::std::string const &name) const
MCAPI ::Scripting::Result_deprecated< void > $init()
static MCAPI void ** $vftableForServerFeatureFlagManagerServiceProvider()
MCAPI ::std::vector<::Editor::FeatureFlagEntry > $getSnapshot() const
static MCAPI ::std::string_view const & ServiceName()
MCAPI::std::string_view $getServiceName() const
MCAPI ::Scripting::Result_deprecated< void > $registerGlobalFlag(::std::string const &name, bool defaultValue, ::Editor::FeatureFlagSource source, ::std::string const &description, bool readOnly)
MCAPI ::Scripting::Result_deprecated< void > $ready()
MCAPI::Bedrock::PubSub::Subscription $listenForGlobalFlagChanged(::std::function< void(::Editor::FeatureFlagEntry const &)> func)
MCAPI ::Scripting::Result_deprecated< void > $setGlobalFlag(::std::string const &name, bool value)
Definition FeatureFlagEntry.h:7
Definition Alias.h:14