LeviLamina
Loading...
Searching...
No Matches
EditorServerPersistenceServiceV2.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/editor/EditorPersistenceServiceV2.h"
7#include "mc/common/editor/PersistenceGroupChangeAction.h"
8#include "mc/common/editor/PersistenceGroupItemChangeAction.h"
9#include "mc/common/editor/PersistenceGroupType.h"
10#include "mc/common/editor/PersistenceScope.h"
11#include "mc/deps/core/file/PathBuffer.h"
12#include "mc/deps/game_refs/StackRefResult.h"
13#include "mc/deps/scripting/runtime/Result_deprecated.h"
14
15// auto generated forward declare list
16// clang-format off
17namespace Editor { class ServiceProviderCollection; }
18namespace Editor::Network { class PersistenceQuerySharedGroupPayload; }
19namespace Editor::Services { class PersistenceGroup; }
20namespace Editor::Services { class PersistenceItem; }
21namespace Editor::Services { struct PersistenceGroupItemMetadata; }
22namespace Editor::Services { struct PersistenceGroupMetadata; }
23// clang-format on
24
25namespace Editor::Services {
26
28public:
29 // member variables
30 // NOLINTBEGIN
33 // NOLINTEND
34
35public:
36 // prevent constructor by default
40
41public:
42 // virtual functions
43 // NOLINTBEGIN
44 // vIndex: 0
45 virtual ~EditorServerPersistenceServiceV2() /*override*/ = default;
46
47 // vIndex: 1
48 virtual ::Scripting::Result_deprecated<void> init() /*override*/;
49
50 // vIndex: 3
51 virtual ::Scripting::Result_deprecated<void> quit() /*override*/;
52
53 // vIndex: 2
54 virtual ::Scripting::Result_deprecated<void> ready() /*override*/;
55
56 // vIndex: 4
57 virtual ::std::string_view getServiceName() const /*override*/;
58
59 // vIndex: 1
60 virtual ::Scripting::Result_deprecated<::StackRefResult<::Editor::Services::PersistenceGroup>> getOrCreateGroup(
61 ::std::string const& namespacedName,
62 ::Editor::Services::PersistenceScope scope,
63 ::std::optional<int> version,
64 ::std::optional<::Editor::Services::PersistenceGroupType> groupType
65 ) /*override*/;
66
67 // vIndex: 2
68 virtual ::Scripting::Result_deprecated<::StackRefResult<::Editor::Services::PersistenceGroup>> createGroup(
69 ::std::string const& namespacedName,
70 ::Editor::Services::PersistenceScope scope,
71 ::std::optional<int> version,
72 ::std::optional<::Editor::Services::PersistenceGroupType> groupType
73 ) /*override*/;
74
75 // vIndex: 5
76 virtual ::Scripting::Result_deprecated<void> deleteGroup(
77 ::std::string const& namespacedName,
78 ::Editor::Services::PersistenceScope scope,
79 ::std::optional<int> version
80 ) /*override*/;
81
82 // vIndex: 8
83 virtual ::Core::PathBuffer<::std::string> _getGroupRootPath(::Editor::Services::PersistenceScope scope) const
84 /*override*/;
85
86 // vIndex: 7
87 virtual bool _validateScope(::Editor::Services::PersistenceScope scope) const /*override*/;
88 // NOLINTEND
89
90public:
91 // member functions
92 // NOLINTBEGIN
94
95 MCNAPI ::Editor::Services::PersistenceGroupMetadata _createMetadata(
96 ::std::string const& namespacedName,
97 ::Editor::Services::PersistenceScope scope,
98 ::std::optional<int> version
99 );
100
103 ::Editor::Services::PersistenceGroupItemChangeAction action
104 );
105
107 ::Editor::Services::PersistenceGroupChangeAction action,
109 );
110
111 MCNAPI ::std::string _getGroupItemKey(::std::string groupVersionName, ::Editor::Services::PersistenceScope scope);
112
114 ::std::string key,
115 ::Editor::Services::PersistenceScope scope,
116 ::Editor::Services::PersistenceGroupItemChangeAction action,
118 );
119
121 // NOLINTEND
122
123public:
124 // constructor thunks
125 // NOLINTBEGIN
127 // NOLINTEND
128
129public:
130 // virtual function thunks
131 // NOLINTBEGIN
132 MCNAPI ::Scripting::Result_deprecated<void> $init();
133
134 MCNAPI ::Scripting::Result_deprecated<void> $quit();
135
136 MCNAPI ::Scripting::Result_deprecated<void> $ready();
137
138 MCNAPI ::std::string_view $getServiceName() const;
139
140 MCNAPI ::Scripting::Result_deprecated<::StackRefResult<::Editor::Services::PersistenceGroup>> $getOrCreateGroup(
141 ::std::string const& namespacedName,
142 ::Editor::Services::PersistenceScope scope,
143 ::std::optional<int> version,
144 ::std::optional<::Editor::Services::PersistenceGroupType> groupType
145 );
146
147 MCNAPI ::Scripting::Result_deprecated<::StackRefResult<::Editor::Services::PersistenceGroup>> $createGroup(
148 ::std::string const& namespacedName,
149 ::Editor::Services::PersistenceScope scope,
150 ::std::optional<int> version,
151 ::std::optional<::Editor::Services::PersistenceGroupType> groupType
152 );
153
154 MCNAPI ::Scripting::Result_deprecated<void> $deleteGroup(
155 ::std::string const& namespacedName,
156 ::Editor::Services::PersistenceScope scope,
157 ::std::optional<int> version
158 );
159
160 MCNAPI ::Core::PathBuffer<::std::string> $_getGroupRootPath(::Editor::Services::PersistenceScope scope) const;
161
162 MCNAPI bool $_validateScope(::Editor::Services::PersistenceScope scope) const;
163 // NOLINTEND
164
165public:
166 // vftables
167 // NOLINTBEGIN
169
170 MCNAPI static void** $vftableForIEditorService();
171 // NOLINTEND
172};
173
174} // namespace Editor::Services
Definition PersistenceQuerySharedGroupPayload.h:11
Definition ServiceProviderCollection.h:7
Definition EditorPersistenceServiceV2.h:27
Definition EditorServerPersistenceServiceV2.h:27
MCAPI void * $ctor(::Editor::ServiceProviderCollection &providers)
MCAPI ::Scripting::Result_deprecated< void > $deleteGroup(::std::string const &namespacedName, ::Editor::Services::PersistenceScope scope, ::std::optional< int > version)
static MCAPI void ** $vftableForEditorPersistenceServiceV2Provider()
MCAPI::Editor::Services::PersistenceGroupMetadata _createMetadata(::std::string const &namespacedName, ::Editor::Services::PersistenceScope scope, ::std::optional< int > version)
MCAPI ::Scripting::Result_deprecated<::StackRefResult<::Editor::Services::PersistenceGroup > > $getOrCreateGroup(::std::string const &namespacedName, ::Editor::Services::PersistenceScope scope, ::std::optional< int > version, ::std::optional<::Editor::Services::PersistenceGroupType > groupType)
MCAPI void _dispatchGroupItemsToClient(::Editor::Services::PersistenceGroupItemMetadata item, ::Editor::Services::PersistenceGroupItemChangeAction action)
MCAPI::std::string _getGroupItemKey(::std::string groupVersionName, ::Editor::Services::PersistenceScope scope)
MCAPI ::Scripting::Result_deprecated< void > $ready()
MCAPI bool $_validateScope(::Editor::Services::PersistenceScope scope) const
MCAPI ::Core::PathBuffer<::std::string > $_getGroupRootPath(::Editor::Services::PersistenceScope scope) const
MCAPI ::Scripting::Result_deprecated<::StackRefResult<::Editor::Services::PersistenceGroup > > $createGroup(::std::string const &namespacedName, ::Editor::Services::PersistenceScope scope, ::std::optional< int > version, ::std::optional<::Editor::Services::PersistenceGroupType > groupType)
MCAPI ::Scripting::Result_deprecated< void > $quit()
MCAPI::std::string_view $getServiceName() const
MCAPI ::Scripting::Result_deprecated< void > $init()
MCAPI void _handleGroupItemChange(::std::string key, ::Editor::Services::PersistenceScope scope, ::Editor::Services::PersistenceGroupItemChangeAction action, ::StackRefResult<::Editor::Services::PersistenceItem > &item)
MCAPI void _handleQuerySharedGroupPayload(::Editor::Network::PersistenceQuerySharedGroupPayload const &payload)
MCAPI void _dispatchGroupToClients(::Editor::Services::PersistenceGroupChangeAction action, ::Editor::Services::PersistenceGroupMetadata groupMetadata)
MCAPI EditorServerPersistenceServiceV2(::Editor::ServiceProviderCollection &providers)
Definition StackRefResult.h:7
Definition PersistenceGroupItemMetadata.h:7
Definition PersistenceGroupMetadata.h:15
Definition Alias.h:14