LeviLamina
Loading...
Searching...
No Matches
ServerCursorService.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#include "mc/editor/services/IEditorService.h"
10#include "mc/editor/services/PayloadStoreHelper.h"
11#include "mc/server/editor/serviceproviders/ServerCursorServiceProvider.h"
12
13// auto generated forward declare list
14// clang-format off
15class BlockPos;
16namespace Bedrock::PubSub { class Subscription; }
17namespace Editor { class ProjectRegion; }
18namespace Editor::Cursor { class ServerCursor; }
19namespace Editor::Cursor { struct AttachmentProperties; }
20namespace Editor::Cursor { struct CursorState; }
21namespace Editor::Cursor { struct Position; }
22namespace Editor::Cursor { struct Ray; }
23namespace Editor::Network { class CursorServicePositionChangePayload; }
24// clang-format on
25
26namespace Editor::Cursor {
27
31public:
32 // member variables
33 // NOLINTBEGIN
41 // NOLINTEND
42
43public:
44 // prevent constructor by default
48
49public:
50 // virtual functions
51 // NOLINTBEGIN
52 // vIndex: 0
53 virtual ~ServerCursorService() /*override*/;
54
55 // vIndex: 1
56 virtual ::Scripting::Result_deprecated<void> init() /*override*/;
57
58 // vIndex: 2
59 virtual ::Scripting::Result_deprecated<void> ready() /*override*/;
60
61 // vIndex: 3
62 virtual ::Scripting::Result_deprecated<void> quit() /*override*/;
63
64 // vIndex: 4
65 virtual ::std::string_view getServiceName() const /*override*/;
66
67 // vIndex: 1
68 virtual ::StackRefResult<::Editor::Cursor::ServerCursor> getCursor() const /*override*/;
69
70 // vIndex: 2
71 virtual ::StackRefResult<::Editor::Cursor::Ray> getRay() const /*override*/;
72
73 // vIndex: 3
74 virtual ::Scripting::Result_deprecated<::Editor::Cursor::CursorState> getCursorState() const /*override*/;
75
76 // vIndex: 4
77 virtual ::Scripting::Result_deprecated<::Editor::Cursor::AttachmentProperties> getAttachmentProperties() const
78 /*override*/;
79
80 // vIndex: 5
81 virtual ::Scripting::Result_deprecated<void> setCursorState(::Editor::Cursor::CursorState&& state) /*override*/;
82
83 // vIndex: 6
84 virtual ::Scripting::Result_deprecated<void>
85 setAttachmentProperties(::Editor::Cursor::AttachmentProperties&& properties) /*override*/;
86
87 // vIndex: 7
88 virtual ::Scripting::Result_deprecated<::BlockPos> moveBy(::glm::ivec3 const& offset) /*override*/;
89
90 // vIndex: 8
91 virtual ::Scripting::Result_deprecated<::Bedrock::PubSub::Subscription> listenForCursorStateChanges(
92 ::std::function<void(::Editor::Cursor::CursorState const&, ::Editor::Cursor::CursorState const&)> callback
93 ) /*override*/;
94
95 // vIndex: 9
96 virtual ::Bedrock::PubSub::Subscription listenForCursorPositionChanges(
97 ::std::function<void(::std::optional<::Editor::Cursor::Position> const&, ::Editor::Cursor::CursorState const&)>
98 callback
99 ) /*override*/;
100
101 // vIndex: 10
102 virtual ::WeakRef<::Editor::ProjectRegion> getRegion() const /*override*/;
103 // NOLINTEND
104
105public:
106 // member functions
107 // NOLINTBEGIN
108 MCNAPI ::Scripting::Result_deprecated<::WeakRef<::Editor::Cursor::ServerCursor>> _createCursor();
109
110 MCNAPI void _createOrUpdateRegion(::BlockPos const& pos);
111
113 // NOLINTEND
114
115public:
116 // destructor thunk
117 // NOLINTBEGIN
118 MCNAPI void $dtor();
119 // NOLINTEND
120
121public:
122 // virtual function thunks
123 // NOLINTBEGIN
124 MCNAPI ::Scripting::Result_deprecated<void> $init();
125
126 MCNAPI ::Scripting::Result_deprecated<void> $ready();
127
128 MCNAPI ::Scripting::Result_deprecated<void> $quit();
129
130 MCNAPI ::std::string_view $getServiceName() const;
131
132 MCNAPI ::StackRefResult<::Editor::Cursor::ServerCursor> $getCursor() const;
133
134 MCNAPI ::StackRefResult<::Editor::Cursor::Ray> $getRay() const;
135
136 MCNAPI ::Scripting::Result_deprecated<::Editor::Cursor::CursorState> $getCursorState() const;
137
138 MCNAPI ::Scripting::Result_deprecated<::Editor::Cursor::AttachmentProperties> $getAttachmentProperties() const;
139
140 MCNAPI ::Scripting::Result_deprecated<void> $setCursorState(::Editor::Cursor::CursorState&& state);
141
142 MCNAPI ::Scripting::Result_deprecated<void>
144
145 MCNAPI ::Scripting::Result_deprecated<::BlockPos> $moveBy(::glm::ivec3 const& offset);
146
147 MCNAPI ::Scripting::Result_deprecated<::Bedrock::PubSub::Subscription> $listenForCursorStateChanges(
148 ::std::function<void(::Editor::Cursor::CursorState const&, ::Editor::Cursor::CursorState const&)> callback
149 );
150
151 MCNAPI ::Bedrock::PubSub::Subscription $listenForCursorPositionChanges(
152 ::std::function<void(::std::optional<::Editor::Cursor::Position> const&, ::Editor::Cursor::CursorState const&)>
153 callback
154 );
155
156 MCNAPI ::WeakRef<::Editor::ProjectRegion> $getRegion() const;
157 // NOLINTEND
158
159public:
160 // vftables
161 // NOLINTBEGIN
163
164 MCNAPI static void** $vftableForIEditorService();
165 // NOLINTEND
166};
167
168} // namespace Editor::Cursor
Definition BlockPos.h:17
Definition ServerCursorServiceProvider.h:24
Definition ServerCursorService.h:30
MCAPI ::Scripting::Result_deprecated< void > $ready()
MCAPI ::Scripting::Result_deprecated<::Editor::Cursor::AttachmentProperties > $getAttachmentProperties() const
MCAPI ::Scripting::Result_deprecated< void > $setCursorState(::Editor::Cursor::CursorState &&state)
MCAPI void _handlePayloadPositionChange(::Editor::Network::CursorServicePositionChangePayload const &payload)
MCAPI ::Scripting::Result_deprecated<::BlockPos > $moveBy(::glm::ivec3 const &offset)
MCAPI::Bedrock::PubSub::Subscription $listenForCursorPositionChanges(::std::function< void(::std::optional<::Editor::Cursor::Position > const &, ::Editor::Cursor::CursorState const &)> callback)
MCAPI ::Scripting::Result_deprecated< void > $quit()
static MCAPI void ** $vftableForIEditorService()
MCAPI ::Scripting::Result_deprecated<::WeakRef<::Editor::Cursor::ServerCursor > > _createCursor()
MCAPI ::Scripting::Result_deprecated<::Editor::Cursor::CursorState > $getCursorState() const
MCAPI::std::string_view $getServiceName() const
MCAPI ::StackRefResult<::Editor::Cursor::Ray > $getRay() const
MCAPI ::Scripting::Result_deprecated< void > $init()
MCAPI ::StackRefResult<::Editor::Cursor::ServerCursor > $getCursor() const
MCAPI void _createOrUpdateRegion(::BlockPos const &pos)
static MCAPI void ** $vftableForServerCursorServiceProvider()
MCAPI ::WeakRef<::Editor::ProjectRegion > $getRegion() const
MCAPI ::Scripting::Result_deprecated<::Bedrock::PubSub::Subscription > $listenForCursorStateChanges(::std::function< void(::Editor::Cursor::CursorState const &, ::Editor::Cursor::CursorState const &)> callback)
MCAPI ::Scripting::Result_deprecated< void > $setAttachmentProperties(::Editor::Cursor::AttachmentProperties &&properties)
Definition CursorServicePositionChangePayload.h:11
Definition IEditorService.h:11
Definition PayloadStoreHelper.h:7
Definition AttachmentProperties.h:7
Definition CursorState.h:12
Definition Alias.h:14