LeviLamina
Loading...
Searching...
No Matches
ScriptMeshCacheService.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/script_core/runtime/scripting/Result_deprecated.h"
7#include "mc/editor/services/PayloadStoreHelper.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace Editor { class EditorManager; }
12namespace Editor { class ServiceProviderCollection; }
13namespace Editor::Services { class TransactionManagerServiceProvider; }
14namespace Scripting { class WeakLifetimeScope; }
15namespace Scripting { struct ClassBinding; }
16namespace Scripting { struct EnumBinding; }
17// clang-format on
18
19namespace Editor::ScriptModule {
20
21class ScriptMeshCacheService : public ::Editor::Services::PayloadStoreHelper {
22public:
23 // ScriptMeshCacheService inner types declare
24 // clang-format off
25 struct ActiveCommitState;
26 struct PendingRevertState;
27 // clang-format on
28
29 // ScriptMeshCacheService inner types define
30 struct ActiveCommitState {
31 public:
32 // member variables
33 // NOLINTBEGIN
42 // NOLINTEND
43
44 public:
45 // prevent constructor by default
46 ActiveCommitState& operator=(ActiveCommitState const&);
47 ActiveCommitState(ActiveCommitState const&);
48 ActiveCommitState();
49 };
50
51 struct PendingRevertState {
52 public:
53 // member variables
54 // NOLINTBEGIN
61 // NOLINTEND
62
63 public:
64 // prevent constructor by default
65 PendingRevertState& operator=(PendingRevertState const&);
66 PendingRevertState(PendingRevertState const&);
67 PendingRevertState();
68 };
69
70public:
71 // member variables
72 // NOLINTBEGIN
88 // NOLINTEND
89
90public:
91 // prevent constructor by default
92 ScriptMeshCacheService& operator=(ScriptMeshCacheService const&);
93 ScriptMeshCacheService(ScriptMeshCacheService const&);
94 ScriptMeshCacheService();
95
96public:
97 // member functions
98 // NOLINTBEGIN
100
101 MCNAPI void
102 _finishActiveCommit(::std::string const& requestId, bool clientSuccess, ::std::string const& clientError);
103
105
107
108 MCNAPI void _rejectCommitPromise(::std::string const& requestId, ::std::string const& errorCode);
109
111 ::std::string const& requestId,
112 bool isSuccess,
113 int blockCount,
114 ::std::string const& errorMessage
115 );
116
119 ::std::function<void()> onComplete
120 );
121
123
124 MCNAPI ::Scripting::Result_deprecated<void> cancelCommit(::std::string const& requestId);
125
126 MCNAPI ::Scripting::Result_deprecated<void> unloadMesh(::std::string const& meshId);
127
129 // NOLINTEND
130
131public:
132 // static functions
133 // NOLINTBEGIN
134 MCNAPI static ::Scripting::EnumBinding bindMeshColorSourceKind();
135
136 MCNAPI static ::Scripting::EnumBinding bindMeshLoadError();
137
138 MCNAPI static ::Scripting::EnumBinding bindMeshPlacementError();
139
140 MCNAPI static ::Scripting::ClassBinding bindScript();
141 // NOLINTEND
142
143public:
144 // constructor thunks
145 // NOLINTBEGIN
147 // NOLINTEND
148
149public:
150 // destructor thunk
151 // NOLINTBEGIN
152 MCNAPI void $dtor();
153 // NOLINTEND
154};
155
156} // namespace Editor::ScriptModule
Definition EditorManager.h:31
MCAPI void _rejectCommitPromise(::std::string const &requestId, ::std::string const &errorCode)
MCAPI void * $ctor(::Editor::ServiceProviderCollection &services, ::Scripting::WeakLifetimeScope const &)
MCAPI ::Scripting::Result_deprecated< void > unloadMesh(::std::string const &meshId)
static MCAPI ::Scripting::ClassBinding bindScript()
MCAPI ::Scripting::Result_deprecated< void > cancelCommit(::std::string const &requestId)
static MCAPI ::Scripting::EnumBinding bindMeshColorSourceKind()
MCAPI void _resolveCommitPromise(::std::string const &requestId, bool isSuccess, int blockCount, ::std::string const &errorMessage)
MCAPI ScriptMeshCacheService(::Editor::ServiceProviderCollection &services, ::Scripting::WeakLifetimeScope const &)
MCAPI void _finishActiveCommit(::std::string const &requestId, bool clientSuccess, ::std::string const &clientError)
MCAPI void _revertAppliedBlocksAndDiscard(::Editor::Services::TransactionManagerServiceProvider &transactionManager, ::std::function< void()> onComplete)
MCAPI void _onLevelTick(::Editor::EditorManager &)
static MCAPI ::Scripting::EnumBinding bindMeshLoadError()
static MCAPI ::Scripting::EnumBinding bindMeshPlacementError()
Definition ServiceProviderCollection.h:7
Definition PayloadStoreHelper.h:7
Definition TransactionManagerServiceProvider.h:21
Definition WeakLifetimeScope.h:12
Definition ClassBinding.h:10
Definition EnumBinding.h:10
Definition Alias.h:14