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