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 // vIndex: 0
21 virtual ~ModeServiceProvider() = default;
22
23 // vIndex: 1
24 virtual ::Editor::Mode getMode() const = 0;
25
26 // vIndex: 2
27 virtual ::Scripting::Result_deprecated<void> trySetMode(::Editor::Mode) = 0;
28
29 // vIndex: 3
30 virtual ::Scripting::Result_deprecated<::Bedrock::PubSub::Subscription>
31 listenForModeChange(::std::function<void(::Editor::Mode, ::Editor::Mode)>) = 0;
32 // NOLINTEND
33
34public:
35 // virtual function thunks
36 // NOLINTBEGIN
37
38 // NOLINTEND
39};
40
41} // namespace Editor::Services
Definition ModeServiceProvider.h:16