LeviLamina
Loading...
Searching...
No Matches
ServerCursorServiceProvider.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/game_refs/StackRefResult.h"
7#include "mc/deps/scripting/runtime/Result.h"
8#include "mc/deps/scripting/runtime/Result_deprecated.h"
9
10// auto generated forward declare list
11// clang-format off
12class BlockPos;
13namespace Bedrock::PubSub { class Subscription; }
14namespace Editor::Cursor { class ServerCursor; }
15namespace Editor::Cursor { struct AttachmentProperties; }
16namespace Editor::Cursor { struct CursorState; }
17namespace Editor::Cursor { struct Position; }
18namespace Editor::Cursor { struct Ray; }
19// clang-format on
20
21namespace Editor::Cursor {
22
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 // vIndex: 0
28 virtual ~ServerCursorServiceProvider() = default;
29
30 // vIndex: 1
31 virtual ::StackRefResult<::Editor::Cursor::ServerCursor> getCursor() const = 0;
32
33 // vIndex: 2
34 virtual ::StackRefResult<::Editor::Cursor::Ray> getRay() const = 0;
35
36 // vIndex: 3
37 virtual ::Scripting::Result_deprecated<::Editor::Cursor::CursorState> getCursorState() const = 0;
38
39 // vIndex: 4
40 virtual ::Scripting::Result_deprecated<::Editor::Cursor::AttachmentProperties> getAttachmentProperties() const = 0;
41
42 // vIndex: 5
43 virtual ::Scripting::Result<void> setCursorState(::Editor::Cursor::CursorState&& state) = 0;
44
45 // vIndex: 6
46 virtual ::Scripting::Result<void> setAttachmentProperties(::Editor::Cursor::AttachmentProperties&& props) = 0;
47
48 // vIndex: 7
49 virtual ::Scripting::Result_deprecated<::BlockPos> moveBy(::glm::ivec3 const&) = 0;
50
51 // vIndex: 8
52 virtual ::Scripting::Result_deprecated<::Bedrock::PubSub::Subscription>
53 listenForCursorStateChanges(::std::function<
55
56 // vIndex: 9
57 virtual ::Bedrock::PubSub::Subscription
58 listenForCursorPositionChanges(::std::function<
59 void(::std::optional<::Editor::Cursor::Position> const&, ::Editor::Cursor::CursorState const&)>) = 0;
60 // NOLINTEND
61
62public:
63 // destructor thunk
64 // NOLINTBEGIN
65
66 // NOLINTEND
67
68public:
69 // virtual function thunks
70 // NOLINTBEGIN
71
72 // NOLINTEND
73};
74
75} // namespace Editor::Cursor
Definition BlockPos.h:18
Definition ServerCursorServiceProvider.h:23
Definition AttachmentProperties.h:7
Definition CursorState.h:12