Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ContentManagerFactoryImpl.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/screens/models/ContentFlags.h"
7#include "mc/client/gui/screens/models/ContentManagerFactoryArgs.h"
8#include "mc/client/gui/screens/models/ContentType.h"
9#include "mc/client/gui/screens/models/IContentManagerFactory.h"
10#include "mc/client/gui/screens/models/IPackManagerContentQueries.h"
11#include "mc/client/resources/ContentCatalogPackSource.h"
12#include "mc/deps/core/file/PathBuffer.h"
13#include "mc/deps/core/resource/PackOrigin.h"
14#include "mc/deps/core/resource/PackType.h"
15#include "mc/deps/core/threading/Async.h"
16#include "mc/deps/core/utility/NonOwnerPointer.h"
17
18// auto generated forward declare list
19// clang-format off
20class AppPlatform;
23class ContentTierInfo;
25class Pack;
26class PackSource;
27class StoreCatalogRepository;
28struct ContentSource;
36namespace ContentManagerUtils { class ISourcesAsyncReloader; }
37namespace Core { class Path; }
38namespace Realms { class RealmsServicePackSource; }
39namespace Realms { struct Content; }
40namespace Realms { struct RealmId; }
41namespace mce { class UUID; }
42// clang-format on
43
45public:
46 // ContentManagerFactoryImpl inner types declare
47 // clang-format off
49 // clang-format on
50
51 // ContentManagerFactoryImpl inner types define
52 class PackManagerContentQueriesImpl : public ::IPackManagerContentQueries {
53 public:
54 // member variables
55 // NOLINTBEGIN
56 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::StoreCatalogRepository>> mStoreCatalog;
57 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IContentTierManager const>> mContentTierManager;
58 // NOLINTEND
59
60 public:
61 // virtual functions
62 // NOLINTBEGIN
63 virtual ::ContentTierInfo getContentTierInfo() const /*override*/;
64
65 virtual ::std::string const*
66 getStoreCatalogItemAvailableDateByPackIdentityAndType(::mce::UUID const& uuid) const /*override*/;
67 // NOLINTEND
68
69 public:
70 // virtual function thunks
71 // NOLINTBEGIN
73
74 MCNAPI ::std::string const*
76 // NOLINTEND
77 };
78
79public:
80 // member variables
81 // NOLINTBEGIN
82 ::ll::TypedStorage<8, 184, ::ContentManagerFactoryArgs> mArgs;
83 // NOLINTEND
84
85public:
86 // virtual functions
87 // NOLINTBEGIN
88 virtual ::std::unique_ptr<::WorldContentSource> createWorldContentSource() const /*override*/;
89
90 virtual ::std::unique_ptr<::WorldTemplateSource> createWorldTemplateSource() const /*override*/;
91
92 virtual ::std::unique_ptr<::InvalidResourceSource>
93 createInvalidResourceSource(::InvalidPacksFilterGroup const& filter) const /*override*/;
94
95 virtual ::std::unique_ptr<::ContentSource> createWorldPackManagerContentSource(
96 ::std::string const& worldID,
97 ::Core::PathBuffer<::std::string> worldPath,
98 ::ContentFlags flags,
99 ::std::vector<::PackManagerContentSourceData>&& data,
100 ::std::weak_ptr<::CachedHostPackIdProvider> provider
101 ) const /*override*/;
102
103 virtual ::std::unique_ptr<::ContentSource> createRealmPackManagerContentSource(
104 int64 realmID,
105 ::ContentFlags flags,
106 ::std::vector<::PackManagerContentSourceData>&& data
107 ) const /*override*/;
108
109 virtual ::std::unique_ptr<::ContentSource> createRealmsWorldPackManagerContentSource(
110 ::Realms::RealmId realmId,
111 ::std::vector<::Realms::Content>&& serviceAppliedContent,
112 ::ContentFlags flags,
113 ::std::vector<::PackManagerContentSourceData>&& data
114 ) const /*override*/;
115
116 virtual ::std::unique_ptr<::ContentSource> createPackManagerContentSource(
117 ::ContentType type,
118 ::ContentFlags flags,
119 ::std::vector<::PackManagerContentSourceData>&& data
120 ) const /*override*/;
121
122 virtual ::std::unique_ptr<::CompositePackSource>
123 createCompositePackSource(::std::vector<::PackSource*> sources) const /*override*/;
124
125 virtual ::PackSource* getInPackagePackSource(::PackType type) const /*override*/;
126
127 virtual ::PackSource* getDirectoryPackSource(::Core::Path const& path, ::PackType type) const /*override*/;
128
129 virtual ::PackSource&
130 createDirectoryPackSource(::Core::Path const& path, ::PackType type, ::PackOrigin origin) const /*override*/;
131
132 virtual ::PackSource&
133 createWorldTemplatePackSource(::mce::UUID const& id, ::PackType type, ::PackOrigin origin) const /*override*/;
134
135 virtual ::ContentCatalogPackSource& createContentCatalogPackSource(
136 ::std::weak_ptr<::ContentManagerUtils::ISourcesAsyncReloader>&& weakSourcesAsyncReloader,
137 bool enabled
138 ) const /*override*/;
139
140 virtual ::PackSource& createWorldHistoryPackSource(::Core::Path const& path, ::PackType type) const /*override*/;
141
142 virtual ::RealmsUnknownPackSources& getRealmsUnknownPackSources() const /*override*/;
143
144 virtual ::std::unique_ptr<::Realms::RealmsServicePackSource> createRealmsServicePackSource(
145 int64 realmId,
146 ::PackType packType,
147 ::std::vector<::gsl::not_null<::std::shared_ptr<::Pack>>>&& servicePackData
148 ) const /*override*/;
149
150 virtual ::Bedrock::Threading::Async<void> refreshPacksAsync() const /*override*/;
151
152 virtual bool allowsResourcePackDevelopment() const /*override*/;
153
154 virtual ::Bedrock::NonOwnerPointer<::AppPlatform> getPlatform() const /*override*/;
155 // NOLINTEND
156
157public:
158 // member functions
159 // NOLINTBEGIN
161 ::ContentType type,
162 ::ContentFlags flags,
163 ::std::vector<::PackManagerContentSourceData>&& data
164 ) const;
165 // NOLINTEND
166
167public:
168 // virtual function thunks
169 // NOLINTBEGIN
170 MCNAPI ::std::unique_ptr<::WorldContentSource> $createWorldContentSource() const;
171
172 MCNAPI ::std::unique_ptr<::WorldTemplateSource> $createWorldTemplateSource() const;
173
174 MCNAPI ::std::unique_ptr<::InvalidResourceSource>
176
178 ::std::string const& worldID,
179 ::Core::PathBuffer<::std::string> worldPath,
180 ::ContentFlags flags,
181 ::std::vector<::PackManagerContentSourceData>&& data,
182 ::std::weak_ptr<::CachedHostPackIdProvider> provider
183 ) const;
184
186 int64 realmID,
187 ::ContentFlags flags,
188 ::std::vector<::PackManagerContentSourceData>&& data
189 ) const;
190
192 ::Realms::RealmId realmId,
193 ::std::vector<::Realms::Content>&& serviceAppliedContent,
194 ::ContentFlags flags,
195 ::std::vector<::PackManagerContentSourceData>&& data
196 ) const;
197
199 ::ContentType type,
200 ::ContentFlags flags,
201 ::std::vector<::PackManagerContentSourceData>&& data
202 ) const;
203
204 MCNAPI ::std::unique_ptr<::CompositePackSource>
205 $createCompositePackSource(::std::vector<::PackSource*> sources) const;
206
207 MCNAPI ::PackSource* $getInPackagePackSource(::PackType type) const;
208
209 MCNAPI ::PackSource* $getDirectoryPackSource(::Core::Path const& path, ::PackType type) const;
210
211 MCNAPI ::PackSource&
212 $createDirectoryPackSource(::Core::Path const& path, ::PackType type, ::PackOrigin origin) const;
213
214 MCNAPI ::PackSource&
215 $createWorldTemplatePackSource(::mce::UUID const& id, ::PackType type, ::PackOrigin origin) const;
216
218 ::std::weak_ptr<::ContentManagerUtils::ISourcesAsyncReloader>&& weakSourcesAsyncReloader,
219 bool enabled
220 ) const;
221
222 MCNAPI ::PackSource& $createWorldHistoryPackSource(::Core::Path const& path, ::PackType type) const;
223
225
226 MCNAPI ::std::unique_ptr<::Realms::RealmsServicePackSource> $createRealmsServicePackSource(
227 int64 realmId,
228 ::PackType packType,
229 ::std::vector<::gsl::not_null<::std::shared_ptr<::Pack>>>&& servicePackData
230 ) const;
231
232 MCNAPI ::Bedrock::Threading::Async<void> $refreshPacksAsync() const;
233
235
236 MCNAPI ::Bedrock::NonOwnerPointer<::AppPlatform> $getPlatform() const;
237 // NOLINTEND
238};
Definition AppPlatform.h:79
Definition CachedHostPackIdProvider.h:5
Definition CompositePackSource.h:17
Definition ContentCatalogPackSource.h:5
Definition ContentManagerFactoryImpl.h:13
MCAPI::std::string const * $getStoreCatalogItemAvailableDateByPackIdentityAndType(::mce::UUID const &uuid) const
Definition ContentManagerFactoryImpl.h:5
MCAPI ::std::unique_ptr<::InvalidResourceSource > $createInvalidResourceSource(::InvalidPacksFilterGroup const &filter) const
MCAPI ::std::unique_ptr<::WorldTemplateSource > $createWorldTemplateSource() const
MCAPI::PackSource * $getDirectoryPackSource(::Core::Path const &path, ::PackType type) const
MCAPI::RealmsUnknownPackSources & $getRealmsUnknownPackSources() const
MCAPI::PackSource & $createWorldHistoryPackSource(::Core::Path const &path, ::PackType type) const
MCAPI::ContentCatalogPackSource & $createContentCatalogPackSource(::std::weak_ptr<::ContentManagerUtils::ISourcesAsyncReloader > &&weakSourcesAsyncReloader, bool enabled) const
MCAPI ::std::unique_ptr<::ContentSource > $createPackManagerContentSource(::ContentType type, ::ContentFlags flags, ::std::vector<::PackManagerContentSourceData > &&data) const
MCAPI ::std::unique_ptr<::Realms::RealmsServicePackSource > $createRealmsServicePackSource(int64 realmId, ::PackType packType, ::std::vector<::gsl::not_null<::std::shared_ptr<::Pack > > > &&servicePackData) const
MCAPI ::std::unique_ptr<::ContentSource > $createRealmsWorldPackManagerContentSource(::Realms::RealmId realmId, ::std::vector<::Realms::Content > &&serviceAppliedContent, ::ContentFlags flags, ::std::vector<::PackManagerContentSourceData > &&data) const
MCAPI ::std::unique_ptr<::ContentSource > $createRealmPackManagerContentSource(int64 realmID, ::ContentFlags flags, ::std::vector<::PackManagerContentSourceData > &&data) const
MCAPI ::std::unique_ptr<::WorldContentSource > $createWorldContentSource() const
MCAPI ::Bedrock::Threading::Async< void > $refreshPacksAsync() const
MCAPI ::std::unique_ptr<::CompositePackSource > $createCompositePackSource(::std::vector<::PackSource * > sources) const
MCAPI ::Bedrock::NonOwnerPointer<::AppPlatform > $getPlatform() const
MCAPI ::std::unique_ptr<::ContentSource > $createWorldPackManagerContentSource(::std::string const &worldID, ::Core::PathBuffer<::std::string > worldPath, ::ContentFlags flags, ::std::vector<::PackManagerContentSourceData > &&data, ::std::weak_ptr<::CachedHostPackIdProvider > provider) const
MCAPI::PackSource & $createDirectoryPackSource(::Core::Path const &path, ::PackType type, ::PackOrigin origin) const
MCAPI::PackManagerContentSourceArgs createPackManagerArgs(::ContentType type, ::ContentFlags flags, ::std::vector<::PackManagerContentSourceData > &&data) const
MCAPI::PackSource * $getInPackagePackSource(::PackType type) const
MCAPI bool $allowsResourcePackDevelopment() const
MCAPI::PackSource & $createWorldTemplatePackSource(::mce::UUID const &id, ::PackType type, ::PackOrigin origin) const
Definition ISourcesAsyncReloader.h:7
Definition ContentTierInfo.h:12
Definition Path.h:10
Definition IContentManagerFactory.h:5
Definition IContentTierManager.h:13
Definition PackSource.h:28
Definition Pack.h:28
Definition Path.h:16
Definition RealmsServicePackSource.h:18
Definition UUID.h:8
STL namespace.
Definition ContentManagerFactoryArgs.h:5
Definition ContentSource.h:5
Definition InvalidPacksFilterGroup.h:5
Definition InvalidResourceSource.h:5
Definition PackManagerContentSourceArgs.h:5
Definition PackManagerContentSourceData.h:5
Definition RealmsUnknownPackSources.h:5
Definition Content.h:7
Definition RealmId.h:7
Definition WorldContentSource.h:5
Definition WorldTemplateSource.h:5