LeviLamina
Loading...
Searching...
No Matches
EditorPersistenceServiceV2.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/editor/EditorPersistenceServiceV2Provider.h"
7#include "mc/common/editor/PersistenceGroupType.h"
8#include "mc/common/editor/PersistenceScope.h"
9#include "mc/deps/core/file/PathBuffer.h"
10#include "mc/deps/core/string/BasicStackString.h"
11#include "mc/deps/game_refs/StackRefResult.h"
12#include "mc/deps/game_refs/WeakRef.h"
13#include "mc/deps/scripting/runtime/Result_deprecated.h"
14#include "mc/editor/services/IEditorService.h"
15#include "mc/editor/services/PayloadStoreHelper.h"
16
17// auto generated forward declare list
18// clang-format off
19namespace Editor::Services { class PersistenceGroup; }
20namespace Editor::Services { struct PersistenceGroupManifest; }
21// clang-format on
22
23namespace Editor::Services {
24
28public:
29 // member variables
30 // NOLINTBEGIN
35 // NOLINTEND
36
37public:
38 // prevent constructor by default
42
43public:
44 // virtual functions
45 // NOLINTBEGIN
46 // vIndex: 0
47 virtual ~EditorPersistenceServiceV2() /*override*/;
48
49 // vIndex: 1
50 virtual ::Scripting::Result_deprecated<void> init() /*override*/;
51
52 // vIndex: 3
53 virtual ::Scripting::Result_deprecated<void> quit() /*override*/;
54
55 // vIndex: 2
56 virtual ::Scripting::Result_deprecated<void> ready() /*override*/;
57
58 // vIndex: 4
59 virtual ::std::string_view getServiceName() const /*override*/;
60
61 // vIndex: 3
62 virtual ::Scripting::Result_deprecated<::StackRefResult<::Editor::Services::PersistenceGroup>> getGroup(
63 ::std::string const& namespacedName,
64 ::Editor::Services::PersistenceScope scope,
65 ::std::optional<int> version
66 ) /*override*/;
67
68 // vIndex: 5
69 virtual ::Scripting::Result_deprecated<void> deleteGroup(
70 ::std::string const& namespacedName,
71 ::Editor::Services::PersistenceScope scope,
72 ::std::optional<int> version
73 ) /*override*/;
74
75 // vIndex: 4
76 virtual ::Scripting::Result_deprecated<void>
77 deleteGroup(::StackRefResult<::Editor::Services::PersistenceGroup> const group) /*override*/;
78
79 // vIndex: 6
80 virtual ::std::vector<::StackRefResult<::Editor::Services::PersistenceGroup>> fetchGroups(
81 ::std::optional<::std::string> groupNamespace,
82 ::std::optional<::std::string> namespacedName,
83 ::std::optional<::Editor::Services::PersistenceScope> scope,
84 ::std::optional<int> version
85 ) /*override*/;
86
87 // vIndex: 7
88 virtual bool _validateScope(::Editor::Services::PersistenceScope) const = 0;
89
90 // vIndex: 8
91 virtual ::Core::PathBuffer<::std::string> _getGroupRootPath(::Editor::Services::PersistenceScope) const = 0;
92 // NOLINTEND
93
94public:
95 // member functions
96 // NOLINTBEGIN
97 MCNAPI ::WeakRef<::Editor::Services::PersistenceGroup> _createCacheGroup(
98 ::std::string const& namespacedName,
99 ::Editor::Services::PersistenceScope scope,
100 int version,
101 ::Editor::Services::PersistenceGroupType groupType
102 );
103
104 MCNAPI ::Scripting::Result_deprecated<::StackRefResult<::Editor::Services::PersistenceGroup>> _createGroup(
105 ::std::string const& namespacedName,
106 ::Editor::Services::PersistenceScope scope,
107 ::std::optional<int> version,
108 ::Editor::Services::PersistenceGroupType groupType
109 );
110
111 MCNAPI ::StackRefResult<::Editor::Services::PersistenceGroup> _getGroup(
112 ::std::string const& namespacedName,
113 ::Editor::Services::PersistenceScope scope,
114 ::std::optional<int> version
115 );
116
117 MCNAPI ::Core::PathBuffer<::Core::BasicStackString<char, 1024>>
118 _getManifestFilePath(::Editor::Services::PersistenceScope scope);
119
120 MCNAPI int _getMaxVersion(::std::string const& namespacedName, ::Editor::Services::PersistenceScope scope);
121
122 MCNAPI ::Core::PathBuffer<::std::string> _getPath(
123 ::std::string const& namespacedName,
124 ::Editor::Services::PersistenceScope scope,
125 ::std::optional<int> version
126 ) const;
127
128 MCNAPI void _loadGroupMetaData(::Editor::Services::PersistenceScope scope);
129
130 MCNAPI ::std::optional<::Editor::Services::PersistenceGroupManifest> _parseJsonToGroupManifest(::std::string value);
131
132 MCNAPI bool _saveGroupMetaData(::Editor::Services::PersistenceScope scope);
133 // NOLINTEND
134
135public:
136 // destructor thunk
137 // NOLINTBEGIN
138 MCNAPI void $dtor();
139 // NOLINTEND
140
141public:
142 // virtual function thunks
143 // NOLINTBEGIN
144 MCNAPI ::Scripting::Result_deprecated<void> $init();
145
146 MCNAPI ::Scripting::Result_deprecated<void> $quit();
147
148 MCNAPI ::Scripting::Result_deprecated<void> $ready();
149
150 MCNAPI ::std::string_view $getServiceName() const;
151
152 MCNAPI ::Scripting::Result_deprecated<::StackRefResult<::Editor::Services::PersistenceGroup>> $getGroup(
153 ::std::string const& namespacedName,
154 ::Editor::Services::PersistenceScope scope,
155 ::std::optional<int> version
156 );
157
158 MCNAPI ::Scripting::Result_deprecated<void> $deleteGroup(
159 ::std::string const& namespacedName,
160 ::Editor::Services::PersistenceScope scope,
161 ::std::optional<int> version
162 );
163
164 MCNAPI ::Scripting::Result_deprecated<void>
166
167 MCNAPI ::std::vector<::StackRefResult<::Editor::Services::PersistenceGroup>> $fetchGroups(
168 ::std::optional<::std::string> groupNamespace,
169 ::std::optional<::std::string> namespacedName,
170 ::std::optional<::Editor::Services::PersistenceScope> scope,
171 ::std::optional<int> version
172 );
173 // NOLINTEND
174
175public:
176 // vftables
177 // NOLINTBEGIN
178 MCNAPI static void** $vftableForIEditorService();
179
181 // NOLINTEND
182};
183
184} // namespace Editor::Services
Definition EditorPersistenceServiceV2Provider.h:18
Definition EditorPersistenceServiceV2.h:27
MCAPI ::std::optional<::Editor::Services::PersistenceGroupManifest > _parseJsonToGroupManifest(::std::string value)
MCAPI ::StackRefResult<::Editor::Services::PersistenceGroup > _getGroup(::std::string const &namespacedName, ::Editor::Services::PersistenceScope scope, ::std::optional< int > version)
MCAPI void _loadGroupMetaData(::Editor::Services::PersistenceScope scope)
MCAPI ::Scripting::Result_deprecated<::StackRefResult<::Editor::Services::PersistenceGroup > > $getGroup(::std::string const &namespacedName, ::Editor::Services::PersistenceScope scope, ::std::optional< int > version)
MCAPI ::Scripting::Result_deprecated< void > $deleteGroup(::StackRefResult<::Editor::Services::PersistenceGroup > const group)
MCAPI ::Scripting::Result_deprecated< void > $deleteGroup(::std::string const &namespacedName, ::Editor::Services::PersistenceScope scope, ::std::optional< int > version)
MCAPI bool _saveGroupMetaData(::Editor::Services::PersistenceScope scope)
MCAPI ::std::vector<::StackRefResult<::Editor::Services::PersistenceGroup > > $fetchGroups(::std::optional<::std::string > groupNamespace, ::std::optional<::std::string > namespacedName, ::std::optional<::Editor::Services::PersistenceScope > scope, ::std::optional< int > version)
MCAPI::std::string_view $getServiceName() const
MCAPI ::Core::PathBuffer<::Core::BasicStackString< char, 1024 > > _getManifestFilePath(::Editor::Services::PersistenceScope scope)
MCAPI ::Scripting::Result_deprecated< void > $ready()
MCAPI ::Core::PathBuffer<::std::string > _getPath(::std::string const &namespacedName, ::Editor::Services::PersistenceScope scope, ::std::optional< int > version) const
MCAPI ::Scripting::Result_deprecated< void > $quit()
MCAPI ::Scripting::Result_deprecated<::StackRefResult<::Editor::Services::PersistenceGroup > > _createGroup(::std::string const &namespacedName, ::Editor::Services::PersistenceScope scope, ::std::optional< int > version, ::Editor::Services::PersistenceGroupType groupType)
MCAPI ::Scripting::Result_deprecated< void > $init()
static MCAPI void ** $vftableForIEditorService()
static MCAPI void ** $vftableForEditorPersistenceServiceV2Provider()
MCAPI int _getMaxVersion(::std::string const &namespacedName, ::Editor::Services::PersistenceScope scope)
MCAPI ::WeakRef<::Editor::Services::PersistenceGroup > _createCacheGroup(::std::string const &namespacedName, ::Editor::Services::PersistenceScope scope, int version, ::Editor::Services::PersistenceGroupType groupType)
Definition IEditorService.h:11
Definition PayloadStoreHelper.h:7
Definition StackRefResult.h:7
Definition Alias.h:14