3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/file/ZipProgress.h"
7#include "mc/deps/core/threading/IAsyncResult.h"
8#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
9#include "mc/deps/core/utility/NonOwnerPointer.h"
10#include "mc/world/level/FileArchiverOutcome.h"
23namespace Core {
class FilePathManager; }
24namespace Core {
class Path; }
41 enum class State :
int {
47 enum class ExportType :
int {
51 PlayableEditorLevel = 3,
55 enum class ShowToast :
int {
156 virtual void clear() ;
194 virtual void enqueueConvertImportingWorldTasks(
195 ::std::shared_ptr<::FileArchiver::Result>&,
196 ::Bedrock::NotNullNonOwnerPtr<::FileArchiver::ProgressReporter>,
201 virtual bool shouldCopyWorldForConversion(::std::string
const&)
const = 0;
204 virtual void enqueueConvertExportingWorldTasks(
205 ::std::shared_ptr<::FileArchiver::ExportData>&,
206 ::Bedrock::NotNullNonOwnerPtr<::FileArchiver::ProgressReporter>,
318 virtual ::std::shared_ptr<::FilePickerSettings> generateFilePickerSettings(
319 ::std::vector<::FileArchiver::ExportType>
const& types,
320 ::std::string
const& worldId
330 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager>
const& pathManager,
331 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository>
const& resourcePackRepository,
332 bool isEditorModeEnabled,
333 ::std::unique_ptr<::FileArchiver::IWorldConverter> worldConverter,
334 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> keyProvider,
335 ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv> levelDbEnv,
336 ::std::function<
void(::std::string
const&)> displayMessageFunction
346 ::std::string
const& worldId,
348 ::FileArchiver::ExportType exportType,
349 ::FileArchiver::ShowToast showToast,
352 ::std::function<
void(
::LevelData&)> convertPreExportCallback
358 ::std::shared_ptr<::FileArchiver::ExportData> exportData
367 MCNAPI ::FileArchiverOutcome
373 ::std::string
const& levelId,
375 ::FileArchiver::ShowToast showToast
380 MCNAPI ::std::string
copyLevel(::std::string
const& worldId);
385 ::std::function<
void(
::LevelData&)> preExportConvertedCallback,
386 ::FileArchiver::ExportType exportType,
387 ::FileArchiver::ShowToast toast
390 MCNAPI ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::FileArchiver::Result>>
exportCurrentLevel(
393 ::FileArchiver::ExportType exportType,
400 ::FileArchiver::ExportType exportType,
405 MCNAPI ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::FileArchiver::Result>>
418 MCNAPI
void setWorldConverter(::std::unique_ptr<::FileArchiver::IWorldConverter> worldConverter);
445 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager>
const& pathManager,
446 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository>
const& resourcePackRepository,
447 bool isEditorModeEnabled,
448 ::std::unique_ptr<::FileArchiver::IWorldConverter> worldConverter,
449 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> keyProvider,
450 ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv> levelDbEnv,
451 ::std::function<
void(::std::string
const&)> displayMessageFunction
465 ::std::vector<::FileArchiver::ExportType>
const& types,
466 ::std::string
const& worldId
Definition EnableNonOwnerReferences.h:7
Definition IAsyncResult.h:10
Definition ZipProgress.h:7
Definition FileArchiver.h:186
Definition FileArchiver.h:134
MCAPI void setProgressMessage(::std::string const &message)
static MCAPI void ** $vftableForZipProgress()
static MCAPI void ** $vftableForEnableNonOwnerReferences()
Definition FileArchiver.h:27
MCAPI::FileArchiver::State getCurrentState()
MCAPI void _printLevelStartMessage()
MCAPI ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::FileArchiver::Result > > exportCurrentEditorLevel(::Level *level, ::Core::Path const &exportFilePath, ::std::function< void(::LevelData &)> preExportConvertedCallback, ::FileArchiver::ExportType exportType, ::FileArchiver::ShowToast toast)
MCAPI::FileArchiver::Result _tryBeginExportLevel(::std::string const &levelId, ::Core::Path const &exportFilePath, ::FileArchiver::ShowToast showToast)
MCAPI void setWorldConverter(::std::unique_ptr<::FileArchiver::IWorldConverter > worldConverter)
MCAPI::std::string copyLevel(::std::string const &worldId)
MCAPI void _printMessage(::std::string const &message)
MCAPI void _revertPremiumUpgradePacks(::Core::Path const &filePath)
MCAPI FileArchiver(::Scheduler &scheduler, ::ILevelListCache &levelListCache, ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager > const &pathManager, ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository > const &resourcePackRepository, bool isEditorModeEnabled, ::std::unique_ptr<::FileArchiver::IWorldConverter > worldConverter, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const > keyProvider, ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv > levelDbEnv, ::std::function< void(::std::string const &)> displayMessageFunction)
MCAPI void _printLevelResultMessage(::FileArchiver::Result const &result)
MCAPI ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::FileArchiver::Result > > exportCurrentLevel(::Level *level, bool isBundle, ::FileArchiver::ExportType exportType, ::Core::Path const &exportFilePath)
MCAPI void _clearArchiverState()
MCAPI void * $ctor(::Scheduler &scheduler, ::ILevelListCache &levelListCache, ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager > const &pathManager, ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository > const &resourcePackRepository, bool isEditorModeEnabled, ::std::unique_ptr<::FileArchiver::IWorldConverter > worldConverter, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const > keyProvider, ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv > levelDbEnv, ::std::function< void(::std::string const &)> displayMessageFunction)
MCAPI void exportPack(::Core::Path const &path, ::Core::Path const &exportFilePath, ::std::function< void(::FileArchiver::Result &)> exportCallback)
MCAPI::FileArchiverOutcome _processWorldForTemplate(::std::shared_ptr<::FileArchiver::ExportData > const &exportData)
static MCAPI ::std::string const & EXTENSION_TEMPLATE()
static MCAPI ::std::string const & EXTENSION_RESOURCEPACK()
static MCAPI ::std::string const & EXTENSION_PROJECT()
static MCAPI void ** $vftable()
MCAPI bool _validatePremiumUpgradePacks(::Core::Path const &filePath)
MCAPI void _copyPackToTemp(::PackInstance const &packInstance, ::Core::Path const &tempPath, ::FileArchiver::Result &result)
MCAPI void exportCurrentLevel(::Level *level, bool isBundle, ::FileArchiver::ExportType exportType, ::Core::Path const &exportFilePath, ::std::function< void(::FileArchiver::Result &)> exportCallback)
MCAPI ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::FileArchiver::Result > > _enqueueExportWorldTasks(::Core::Path const &outputFilePath, ::std::string const &worldId, bool isBundle, ::FileArchiver::ExportType exportType, ::FileArchiver::ShowToast showToast, ::std::shared_ptr<::Bedrock::Threading::IAsyncResult< void > > preTaskHandle, ::std::function< void(::FileArchiver::Result &)> cleanupTask, ::std::function< void(::LevelData &)> convertPreExportCallback)
MCAPI ::Bedrock::NotNullNonOwnerPtr<::FileArchiver::ProgressReporter > getProgressReporter()
static MCAPI ::std::string const & EXTENSION_ADDON()
MCAPI ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::FileArchiver::Result > > exportPack(::Core::Path const &path, ::Core::Path const &exportFilePath)
static MCAPI ::std::string const & EXTENSION_EDITOR_ADDON()
static MCAPI ::std::string const & IMPORT_LOCK_FILE()
MCAPI void _exportLevelFiles(::Core::Path const &outputFilePath, bool isBundle, ::std::shared_ptr<::FileArchiver::ExportData > exportData)
MCAPI ::std::shared_ptr<::FilePickerSettings > $generateFilePickerSettings(::std::vector<::FileArchiver::ExportType > const &types, ::std::string const &worldId) const
static MCAPI ::std::string const & EXTENSION_VANILLA()
Definition FilePickerSettings.h:5
Definition IContentKeyProvider.h:13
Definition ILevelListCache.h:27
Definition IResourcePackRepository.h:33
Definition LevelData.h:49
Definition LevelDbEnv.h:8
Definition PackInstance.h:23
Definition Scheduler.h:13
Definition FileArchiver.h:118
Definition FileArchiver.h:256
MCAPI ~EduCloudImportInfo()
Definition FileArchiver.h:89
Definition FileArchiver.h:227
Definition FileArchiver.h:219
Definition FileArchiver.h:60