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.h"
7#include "mc/deps/scripting/runtime/Result_deprecated.h"
8#include "mc/editor/Mode.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace Bedrock::PubSub { class Subscription; }
13// clang-format on
14
15namespace Editor::Services {
16
18public:
19 // virtual functions
20 // NOLINTBEGIN
21 // vIndex: 0
22 virtual ~ModeServiceProvider() = default;
23
24 // vIndex: 1
25 virtual ::Editor::Mode getMode() const = 0;
26
27 // vIndex: 2
28 virtual ::Scripting::Result<void> trySetMode(::Editor::Mode) = 0;
29
30 // vIndex: 3
31 virtual ::Scripting::Result_deprecated<::Bedrock::PubSub::Subscription>
32 listenForModeChange(::std::function<void(::Editor::Mode, ::Editor::Mode)>) = 0;
33 // NOLINTEND
34
35public:
36 // destructor thunk
37 // NOLINTBEGIN
38
39 // NOLINTEND
40
41public:
42 // virtual function thunks
43 // NOLINTBEGIN
44
45 // NOLINTEND
46};
47
48} // namespace Editor::Services
Definition ModeServiceProvider.h:17