47 enum class State :
int {
53 enum class ExportType :
int {
57 PlayableEditorLevel = 3,
61 enum class ShowToast :
int {
70 ::ll::TypedStorage<4, 4, ::FileArchiverOutcome> outcome;
71 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> fileName;
72 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> levelId;
73 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> originalLevelId;
93 ::ll::TypedStorage<8, 32, ::std::string> mLevelId;
94 ::ll::TypedStorage<8, 8, uint64> mTotalFileCount;
95 ::ll::TypedStorage<8, 104, ::FileArchiver::Result> mResult;
96 ::ll::TypedStorage<8, 16, ::Bedrock::UniqueOwnerPointer<::LevelStorage>> mLevelStorage;
97 ::ll::TypedStorage<8, 8, ::LevelData*> mLevelData;
117 ::ll::TypedStorage<4, 4, ::FileArchiverOutcome> outcome;
118 ::ll::TypedStorage<8, 32, ::std::string> copiedLevelId;
119 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> copiedLevelPath;
127 ::ll::TypedStorage<8, 80, ::Bedrock::Threading::Mutex> mProgressLock;
128 ::ll::TypedStorage<8, 32, ::std::string> mProgressTitle;
129 ::ll::TypedStorage<8, 32, ::std::string> mProgressMessage;
139 virtual void clear() ;
166 using PreExportConvertedCallback = ::std::function<void(
::LevelData&)>;
168 using InTaskFilePathCallBack =
178 virtual void enqueueConvertImportingWorldTasks(
179 ::std::shared_ptr<::FileArchiver::Result>&,
180 ::Bedrock::NotNullNonOwnerPtr<::FileArchiver::ProgressReporter>,
185 virtual bool shouldCopyWorldForConversion(::std::string
const&)
const = 0;
188 virtual void enqueueConvertExportingWorldTasks(
189 ::std::shared_ptr<::FileArchiver::ExportData>&,
190 ::Bedrock::NotNullNonOwnerPtr<::FileArchiver::ProgressReporter>,
218 ::ll::TypedStorage<4, 4, ::FileArchiverOutcome> outcome;
219 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> path;
226 ::ll::TypedStorage<4, 4, ::FileArchiverOutcome> outcome;
227 ::ll::TypedStorage<8, 24, ::std::vector<::FileArchiver::ImportWorldsResult::ImportWorldResult>> worlds;
235 ::ll::TypedStorage<1, 1, bool> isCloudImport;
236 ::ll::TypedStorage<1, 1, bool> allowMultiplayer;
237 ::ll::TypedStorage<8, 32, ::std::string> educationOid;
238 ::ll::TypedStorage<8, 32, ::std::string> cTag;
239 ::ll::TypedStorage<8, 32, ::std::string> name;
258 ::ll::TypedStorage<8, 192, ::FileArchiver::ProgressReporter> mProgress;
259 ::ll::TypedStorage<8, 80, ::Bedrock::Threading::Mutex> mStateLock;
260 ::ll::TypedStorage<4, 4, ::FileArchiver::State> mCurrentState;
261 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager>> mFilePathManager;
262 ::ll::TypedStorage<8, 64, ::std::function<void(::std::string
const&)>> mDisplayMessageCallback;
263 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository>> mResourcePackRepository;
264 ::ll::TypedStorage<8, 8, ::ILevelListCache&> mLevelListCache;
265 ::ll::TypedStorage<8, 24, ::std::vector<::Core::PathBuffer<::std::string>>> mSuccessfullyFiledArchives;
266 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mIOTaskGroup;
267 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::FileArchiver::IWorldConverter>> mWorldConverter;
268 ::ll::TypedStorage<1, 1, bool> mIsEditorModeEnabled;
269 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>> mKeyProvider;
270 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv>> mLevelDbEnv;
271 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::FileArchiver::EduCloudImportInfo>>
288 virtual ::std::shared_ptr<::FilePickerSettings> generateFilePickerSettings(
289 ::std::vector<::FileArchiver::ExportType>
const& types,
290 ::std::string
const& worldId
300 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager>
const& pathManager,
301 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository>
const& resourcePackRepository,
302 bool isEditorModeEnabled,
303 ::std::unique_ptr<::FileArchiver::IWorldConverter> worldConverter,
304 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> keyProvider,
305 ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv> levelDbEnv,
306 ::std::function<
void(::std::string
const&)> displayMessageFunction
309 MCAPI
void _clearArchiverState();
314 MCAPI ::Bedrock::Threading::Async<::FileArchiver::Result> _enqueueExportWorldTasks(
316 ::std::string
const& worldId,
318 ::FileArchiver::ExportType exportType,
319 ::FileArchiver::ShowToast showToast,
322 ::std::function<
void(
::LevelData&)> convertPreExportCallback,
327 MCAPI
void _exportLevelFiles(
330 ::std::shared_ptr<::FileArchiver::ExportData> exportData
335 MCAPI
void _printLevelStartMessage();
337 MCAPI
void _printMessage(::std::string
const& message);
339 MCAPI ::FileArchiverOutcome
340 _processWorldForTemplate(::std::shared_ptr<::FileArchiver::ExportData>
const& exportData);
342 MCAPI
void _revertPremiumUpgradePacks(
::Core::Path const& filePath);
344 MCAPI ::FileArchiver::Result _tryBeginExportLevel(
345 ::std::string
const& levelId,
347 ::FileArchiver::ShowToast showToast
350 MCAPI
bool _validatePremiumUpgradePacks(
::Core::Path const& filePath);
352 MCAPI ::std::string copyLevel(::std::string
const& worldId);
354 MCAPI ::Bedrock::Threading::Async<::FileArchiver::Result> exportCurrentEditorLevel(
357 ::std::function<
void(
::LevelData&)> preExportConvertedCallback,
360 ::FileArchiver::ExportType exportType,
361 ::FileArchiver::ShowToast toast
364 MCAPI ::Bedrock::Threading::Async<::FileArchiver::Result> exportCurrentLevel(
367 ::FileArchiver::ExportType exportType,
371 MCAPI
void exportCurrentLevel(
374 ::FileArchiver::ExportType exportType,
379 MCAPI ::Bedrock::Threading::Async<::FileArchiver::Result>
382 MCAPI
void exportPack(
388 MCAPI ::FileArchiver::State getCurrentState();
390 MCAPI ::Bedrock::NotNullNonOwnerPtr<::FileArchiver::ProgressReporter> getProgressReporter();
392 MCAPI
void setWorldConverter(::std::unique_ptr<::FileArchiver::IWorldConverter> worldConverter);
398 MCAPI static ::std::string
const& EXTENSION_ADDON();
400 MCAPI static ::std::string
const& EXTENSION_EDITOR_ADDON();
402 MCAPI static ::std::string
const& EXTENSION_PROJECT();
404 MCAPI static ::std::string
const& EXTENSION_RESOURCEPACK();
406 MCAPI static ::std::string
const& EXTENSION_TEMPLATE();
408 MCAPI static ::std::string
const& EXTENSION_VANILLA();
410 MCAPI static ::std::string
const& IMPORT_LOCK_FILE();
419 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager>
const& pathManager,
420 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository>
const& resourcePackRepository,
421 bool isEditorModeEnabled,
422 ::std::unique_ptr<::FileArchiver::IWorldConverter> worldConverter,
423 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> keyProvider,
424 ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv> levelDbEnv,
425 ::std::function<
void(::std::string
const&)> displayMessageFunction
438 MCAPI ::std::shared_ptr<::FilePickerSettings> $generateFilePickerSettings(
439 ::std::vector<::FileArchiver::ExportType>
const& types,
440 ::std::string
const& worldId
Definition IContentKeyProvider.h:13