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