LeviLamina
Loading...
Searching...
No Matches
ModeServiceProvider.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/runtime/Result_deprecated.h"
7#include "mc/editor/Mode.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace Bedrock::PubSub { class Subscription; }
12// clang-format on
13
14namespace Editor::Services {
15
17public:
18 // virtual functions
19 // NOLINTBEGIN
20 virtual ~ModeServiceProvider() = default;
21
22 virtual ::Editor::Mode getMode() const = 0;
23
24 virtual ::Scripting::Result_deprecated<void> trySetMode(::Editor::Mode) = 0;
25
26 virtual ::Scripting::Result_deprecated<::Bedrock::PubSub::Subscription>
27 listenForModeChange(::std::function<void(::Editor::Mode, ::Editor::Mode)>) = 0;
28 // NOLINTEND
29
30public:
31 // virtual function thunks
32 // NOLINTBEGIN
33
34 // NOLINTEND
35};
36
37} // namespace Editor::Services
Definition Subscription.h:10
Definition ModeServiceProvider.h:16