LeviLamina
Loading...
Searching...
No Matches
EditorExportProjectManagerService.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/editor/ProjectExportStatus.h"
7#include "mc/common/editor/WorldType.h"
8#include "mc/deps/scripting/runtime/Result_deprecated.h"
9#include "mc/editor/services/IEditorService.h"
10#include "mc/editor/services/export/ExportResult.h"
11#include "mc/server/editor/serviceproviders/EditorPlayerExportProjectServiceProvider.h"
12
13// auto generated forward declare list
14// clang-format off
15class WeakEntityRef;
16namespace Editor { class GameOptions; }
17// clang-format on
18
19namespace Editor::Services {
20
23public:
24 // member variables
25 // NOLINTBEGIN
28 // NOLINTEND
29
30public:
31 // prevent constructor by default
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 // vIndex: 0
40 virtual ~EditorExportProjectManagerService() /*override*/ = default;
41
42 // vIndex: 1
43 virtual ::Scripting::Result_deprecated<void> init() /*override*/;
44
45 // vIndex: 3
46 virtual ::Scripting::Result_deprecated<void> quit() /*override*/;
47
48 // vIndex: 4
49 virtual ::std::string_view getServiceName() const /*override*/;
50
51 // vIndex: 1
52 virtual void beginExportProject(
53 ::WeakEntityRef playerRef,
54 ::Editor::GameOptions const& gameOptions,
55 ::Editor::WorldType const editorWorldType,
56 ::std::function<void(::Editor::ExportResult const&, ::std::string)> callback
57 ) /*override*/;
58
59 // vIndex: 2
60 virtual bool canExportProject() /*override*/;
61
62 // vIndex: 3
63 virtual ::Editor::ProjectExportStatus getExportStatus() /*override*/;
64 // NOLINTEND
65
66public:
67 // member functions
68 // NOLINTBEGIN
69 MCNAPI void _onExportError(
70 ::std::function<void(::Editor::ExportResult const&, ::std::string)> callback,
71 ::std::string message,
72 ::Editor::ExportResult result
73 );
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79 MCNAPI ::Scripting::Result_deprecated<void> $init();
80
81 MCNAPI ::Scripting::Result_deprecated<void> $quit();
82
83 MCNAPI ::std::string_view $getServiceName() const;
84
86 ::WeakEntityRef playerRef,
87 ::Editor::GameOptions const& gameOptions,
88 ::Editor::WorldType const editorWorldType,
89 ::std::function<void(::Editor::ExportResult const&, ::std::string)> callback
90 );
91
92 MCNAPI bool $canExportProject();
93
94 MCNAPI ::Editor::ProjectExportStatus $getExportStatus();
95 // NOLINTEND
96
97public:
98 // vftables
99 // NOLINTBEGIN
100 MCNAPI static void** $vftableForIEditorService();
101
103 // NOLINTEND
104};
105
106} // namespace Editor::Services
Definition GameOptions.h:15
Definition EditorExportProjectManagerService.h:22
MCAPI ::Scripting::Result_deprecated< void > $init()
MCAPI void _onExportError(::std::function< void(::Editor::ExportResult const &, ::std::string)> callback, ::std::string message, ::Editor::ExportResult result)
MCAPI::Editor::ProjectExportStatus $getExportStatus()
MCAPI::std::string_view $getServiceName() const
MCAPI ::Scripting::Result_deprecated< void > $quit()
static MCAPI void ** $vftableForEditorPlayerExportProjectServiceProvider()
MCAPI void $beginExportProject(::WeakEntityRef playerRef, ::Editor::GameOptions const &gameOptions, ::Editor::WorldType const editorWorldType, ::std::function< void(::Editor::ExportResult const &, ::std::string)> callback)
Definition EditorPlayerExportProjectServiceProvider.h:18
Definition IEditorService.h:11
Definition WeakEntityRef.h:14
Definition Alias.h:14