LeviLamina
Loading...
Searching...
No Matches
EditorRealmsService.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/editor/EditorRealmsServiceAvailability.h"
7#include "mc/common/editor/EditorRealmsServiceProvider.h"
8#include "mc/common/editor/RealmsServiceStatus.h"
9#include "mc/common/editor/RealmsWorldUploadResult.h"
10#include "mc/deps/scripting/runtime/Result_deprecated.h"
11#include "mc/editor/services/IEditorService.h"
12#include "mc/editor/services/PayloadStoreHelper.h"
13
14// auto generated forward declare list
15// clang-format off
16class WeakEntityRef;
17namespace Bedrock::PubSub { class Subscription; }
18namespace Editor { class GameOptions; }
19namespace Editor::Network { class EditorRealmsStatusPayload; }
20namespace Editor::Services { struct EditorRealmsWorld; }
21namespace Editor::Services { struct EditorRealmsWorldSlot; }
22// clang-format on
23
24namespace Editor::Services {
25
29public:
30 // member variables
31 // NOLINTBEGIN
40 // NOLINTEND
41
42public:
43 // prevent constructor by default
47
48public:
49 // virtual functions
50 // NOLINTBEGIN
51 // vIndex: 0
52 virtual ~EditorRealmsService() /*override*/;
53
54 // vIndex: 1
55 virtual ::Scripting::Result_deprecated<void> init() /*override*/;
56
57 // vIndex: 3
58 virtual ::Scripting::Result_deprecated<void> quit() /*override*/;
59
60 // vIndex: 2
61 virtual ::Scripting::Result_deprecated<void> ready() /*override*/;
62
63 // vIndex: 4
64 virtual ::std::string_view getServiceName() const /*override*/;
65
66 // vIndex: 10
67 virtual ::Bedrock::PubSub::Subscription listenForRealmsWorldListLoaded(
68 ::std::function<void(::std::vector<::Editor::Services::EditorRealmsWorld>)> callback
69 ) /*override*/;
70
71 // vIndex: 11
72 virtual ::Bedrock::PubSub::Subscription listenForRealmsWorldSlotsLoaded(
73 ::std::function<void(::std::vector<::Editor::Services::EditorRealmsWorldSlot>)> callback
74 ) /*override*/;
75
76 // vIndex: 12
77 virtual ::Bedrock::PubSub::Subscription
78 listenForRealmsWorldDownload(::std::function<void(bool)> callback) /*override*/;
79
80 // vIndex: 1
81 virtual ::std::vector<::Editor::Services::EditorRealmsWorld> const getRealmWorldlist() const /*override*/;
82
83 // vIndex: 2
84 virtual ::std::vector<::Editor::Services::EditorRealmsWorldSlot> const getSlots() const /*override*/;
85
86 // vIndex: 3
87 virtual ::Editor::Services::RealmsServiceStatus const getServiceStatus() const /*override*/;
88
89 // vIndex: 13
90 virtual void beginUploadToRealms(
91 ::std::string,
92 int,
95 ::std::function<void(::Editor::Services::RealmsWorldUploadResult const&)>
96 ) /*override*/;
97
98 // vIndex: 7
99 virtual void beginLoadRealmWorldList(::WeakEntityRef playerRef) /*override*/;
100
101 // vIndex: 8
102 virtual void beginLoadRealmSlots(::std::string const&, ::WeakEntityRef) /*override*/;
103
104 // vIndex: 9
105 virtual void beginDownloadWorld(::std::string const&, int, ::WeakEntityRef) /*override*/;
106
107 // vIndex: 4
108 virtual void loadRealmsWorldList() /*override*/;
109
110 // vIndex: 5
111 virtual void loadRealmsWorldSlots(::std::string const&) /*override*/;
112
113 // vIndex: 6
114 virtual void downloadRealmWorld(::std::string const&, int const) /*override*/;
115
116 // vIndex: 14
117 virtual bool const canUploadWorld() const /*override*/;
118
119 // vIndex: 15
120 virtual ::Editor::Services::EditorRealmsServiceAvailability const isRealmsServiceAvailable() const /*override*/;
121 // NOLINTEND
122
123public:
124 // member functions
125 // NOLINTBEGIN
127
129 // NOLINTEND
130
131public:
132 // destructor thunk
133 // NOLINTBEGIN
134 MCNAPI void $dtor();
135 // NOLINTEND
136
137public:
138 // virtual function thunks
139 // NOLINTBEGIN
140 MCNAPI ::Scripting::Result_deprecated<void> $init();
141
142 MCNAPI ::Scripting::Result_deprecated<void> $quit();
143
144 MCNAPI ::Scripting::Result_deprecated<void> $ready();
145
146 MCNAPI ::std::string_view $getServiceName() const;
147
148 MCNAPI ::Bedrock::PubSub::Subscription $listenForRealmsWorldListLoaded(
149 ::std::function<void(::std::vector<::Editor::Services::EditorRealmsWorld>)> callback
150 );
151
152 MCNAPI ::Bedrock::PubSub::Subscription $listenForRealmsWorldSlotsLoaded(
153 ::std::function<void(::std::vector<::Editor::Services::EditorRealmsWorldSlot>)> callback
154 );
155
156 MCNAPI ::Bedrock::PubSub::Subscription $listenForRealmsWorldDownload(::std::function<void(bool)> callback);
157
158 MCNAPI ::std::vector<::Editor::Services::EditorRealmsWorld> const $getRealmWorldlist() const;
159
160 MCNAPI ::std::vector<::Editor::Services::EditorRealmsWorldSlot> const $getSlots() const;
161
162 MCNAPI ::Editor::Services::RealmsServiceStatus const $getServiceStatus() const;
163
165 ::std::string,
166 int,
169 ::std::function<void(::Editor::Services::RealmsWorldUploadResult const&)>
170 );
171
173
174 MCNAPI void $beginLoadRealmSlots(::std::string const&, ::WeakEntityRef);
175
176 MCNAPI void $beginDownloadWorld(::std::string const&, int, ::WeakEntityRef);
177
178 MCNAPI void $loadRealmsWorldList();
179
180 MCNAPI void $loadRealmsWorldSlots(::std::string const&);
181
182 MCNAPI void $downloadRealmWorld(::std::string const&, int const);
183
184 MCNAPI bool const $canUploadWorld() const;
185
186 MCNAPI ::Editor::Services::EditorRealmsServiceAvailability const $isRealmsServiceAvailable() const;
187 // NOLINTEND
188
189public:
190 // vftables
191 // NOLINTBEGIN
193
194 MCNAPI static void** $vftableForIEditorService();
195 // NOLINTEND
196};
197
198} // namespace Editor::Services
Definition GameOptions.h:15
Definition EditorRealmsStatusPayload.h:11
Definition EditorRealmsServiceProvider.h:21
Definition EditorRealmsService.h:28
MCAPI ::Scripting::Result_deprecated< void > $init()
MCAPI bool const $canUploadWorld() const
MCAPI::Editor::Services::RealmsServiceStatus const $getServiceStatus() const
MCAPI void $beginUploadToRealms(::std::string, int, ::WeakEntityRef, ::Editor::GameOptions const &, ::std::function< void(::Editor::Services::RealmsWorldUploadResult const &)>)
MCAPI::Bedrock::PubSub::Subscription $listenForRealmsWorldDownload(::std::function< void(bool)> callback)
MCAPI::Bedrock::PubSub::Subscription $listenForRealmsWorldSlotsLoaded(::std::function< void(::std::vector<::Editor::Services::EditorRealmsWorldSlot >)> callback)
MCAPI::std::string_view $getServiceName() const
MCAPI ::Scripting::Result_deprecated< void > $quit()
MCAPI void $downloadRealmWorld(::std::string const &, int const)
MCAPI::Bedrock::PubSub::Subscription $listenForRealmsWorldListLoaded(::std::function< void(::std::vector<::Editor::Services::EditorRealmsWorld >)> callback)
static MCAPI void ** $vftableForIEditorService()
MCAPI void $loadRealmsWorldSlots(::std::string const &)
MCAPI ::Scripting::Result_deprecated< void > $ready()
MCAPI ::std::vector<::Editor::Services::EditorRealmsWorld > const $getRealmWorldlist() const
MCAPI void $beginLoadRealmSlots(::std::string const &, ::WeakEntityRef)
static MCAPI void ** $vftableForEditorRealmsServiceProvider()
MCAPI void _handleServiceStatusPayload(::Editor::Network::EditorRealmsStatusPayload const &payload)
MCAPI void $beginDownloadWorld(::std::string const &, int, ::WeakEntityRef)
MCAPI::Editor::Services::EditorRealmsServiceAvailability const $isRealmsServiceAvailable() const
MCAPI void $beginLoadRealmWorldList(::WeakEntityRef playerRef)
MCAPI ::std::vector<::Editor::Services::EditorRealmsWorldSlot > const $getSlots() const
Definition IEditorService.h:11
Definition PayloadStoreHelper.h:7
Definition WeakEntityRef.h:14
Definition Alias.h:14