Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
FileArchiver Class Reference
Inheritance diagram for FileArchiver:

Classes

struct  CopyWorldResult
struct  EduCloudImportInfo
struct  ImportWorldsResult
class  ProgressReporter
struct  Result
struct  ExportData
struct  WorldConverterExportSettings
class  IWorldConverter
struct  InterventionPublishers

Public Types

enum class  ExportType : int {
  Level = 0 , Template = 1 , Project = 2 , PlayableEditorLevel = 3 ,
  PackagedLevel = 4 , PackagedLevelOnly = 5
}
enum class  ShowToast : int { Enabled = 0 , Disabled = 1 }
enum class  State : int { Idle = 0 , Importing = 1 , Exporting = 2 }
using OperationCallback = ::std::function<void(::FileArchiver::Result&)>

Public Member Functions

FileArchiver & operator= (FileArchiver const &)
 FileArchiver (FileArchiver const &)
virtual ::std::shared_ptr<::FilePickerSettings > generateFilePickerSettings (::std::vector<::FileArchiver::ExportType > const &types, ::std::string const &) const
MCAPI FileArchiver (::Scheduler &scheduler, ::ILevelListCache &levelListCache, ::LevelStorageSource &levelStorageSource, ::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 _clearArchiverState ()
MCAPI void _copyPackToTemp (::PackInstance const &packInstance, ::Core::Path const &tempPath, ::FileArchiver::Result &result)
MCAPI ::Bedrock::Threading::Async<::FileArchiver::Result > _enqueueExportWorldTasks (::Core::Path const &outputFilePath, ::std::string const &worldId, bool isBundle, ::FileArchiver::ExportType exportType, ::FileArchiver::ShowToast const showToast, ::Bedrock::Threading::Async< void > preTaskHandle, ::gsl::not_null<::std::shared_ptr<::FileArchiver::InterventionPublishers > > interventionPublishers, ::std::function< void(::FileArchiver::Result &)> cleanupTask, ::std::optional<::FileArchiver::WorldConverterExportSettings > const exportSetting, ::Core::Path const &targetFolder)
MCAPI void _printLevelResultMessage (::FileArchiver::Result const &result)
MCAPI void _printMessage (::std::string const &message)
MCAPI::FileArchiver::Result _tryBeginExportLevel (::std::string const &levelId, ::Core::Path const &exportFilePath, ::FileArchiver::ShowToast const showToast)
MCAPI bool _validatePremiumUpgradePacks (::Core::Path const &filePath)
MCAPI ::Bedrock::Threading::Async<::FileArchiver::Result > exportCurrentEditorLevel (::Level *level, ::Core::Path const &exportFilePath, ::gsl::not_null<::std::shared_ptr<::FileArchiver::InterventionPublishers > > interventionPublishers, ::std::optional<::FileArchiver::WorldConverterExportSettings > exportSetting, ::FileArchiver::ExportType exportType, ::FileArchiver::ShowToast toast)
MCAPI void exportCurrentLevel (::Level *level, bool isBundle, ::FileArchiver::ExportType exportType, ::Core::Path const &exportFilePath, ::std::function< void(::FileArchiver::Result &)> exportCallback, ::gsl::not_null<::std::shared_ptr<::FileArchiver::InterventionPublishers > > interventionPublishers)
MCAPI void exportPack (::Core::Path const &path, ::Core::Path const &exportFilePath, ::std::function< void(::FileArchiver::Result &)> exportCallback)
MCAPI void * $ctor (::Scheduler &scheduler, ::ILevelListCache &levelListCache, ::LevelStorageSource &levelStorageSource, ::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 ::std::shared_ptr<::FilePickerSettings > $generateFilePickerSettings (::std::vector<::FileArchiver::ExportType > const &types, ::std::string const &) const
MCFOLD void $dtor ()

Static Public Member Functions

static MCAPI void _revertPremiumUpgradePacks (::Core::Path const &filePath)
static MCAPI ::std::string const & EXTENSION_PROJECT ()
static MCAPI ::std::string const & EXTENSION_RESOURCEPACK ()
static MCAPI ::std::string const & EXTENSION_TEMPLATE ()
static MCAPI ::std::string const & EXTENSION_VANILLA ()
static MCAPI ::std::string const & IMPORT_LOCK_FILE ()
static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 192, ::FileArchiver::ProgressReporter > mProgress
::ll::TypedStorage< 8, 80, ::std::mutex > mStateLock
::ll::TypedStorage< 4, 4, ::FileArchiver::State > mCurrentState
::ll::TypedStorage< 8, 24, ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager > > mFilePathManager
::ll::TypedStorage< 8, 64, ::std::function< void(::std::string const &)> > mDisplayMessageCallback
::ll::TypedStorage< 8, 24, ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository > > mResourcePackRepository
::ll::TypedStorage< 8, 8, ::ILevelListCache & > mLevelListCache
::ll::TypedStorage< 8, 8, ::LevelStorageSource & > mLevelStorageSource
::ll::TypedStorage< 8, 24, ::std::vector<::Core::PathBuffer<::std::string > > > mSuccessfullyFiledArchives
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::TaskGroup > > mIOTaskGroup
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::FileArchiver::IWorldConverter > > mWorldConverter
::ll::TypedStorage< 1, 1, bool > mIsEditorModeEnabled
::ll::TypedStorage< 8, 24, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const > > mKeyProvider
::ll::TypedStorage< 8, 24, ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv > > mLevelDbEnv
::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string, ::FileArchiver::EduCloudImportInfo > > mEduCloudImportInfo
::std::shared_ptr<::Bedrock::EnableNonOwnerReferences::ControlBlock > mControlBlock

Constructor & Destructor Documentation

◆ FileArchiver()

MCAPI FileArchiver::FileArchiver ( ::Scheduler & scheduler,
::ILevelListCache & levelListCache,
::LevelStorageSource & levelStorageSource,
::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 )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

Member Function Documentation

◆ _clearArchiverState()

MCAPI void FileArchiver::_clearArchiverState ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _copyPackToTemp()

MCAPI void FileArchiver::_copyPackToTemp ( ::PackInstance const & packInstance,
::Core::Path const & tempPath,
::FileArchiver::Result & result )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _enqueueExportWorldTasks()

MCAPI ::Bedrock::Threading::Async<::FileArchiver::Result > FileArchiver::_enqueueExportWorldTasks ( ::Core::Path const & outputFilePath,
::std::string const & worldId,
bool isBundle,
::FileArchiver::ExportType exportType,
::FileArchiver::ShowToast const showToast,
::Bedrock::Threading::Async< void > preTaskHandle,
::gsl::not_null<::std::shared_ptr<::FileArchiver::InterventionPublishers > > interventionPublishers,
::std::function< void(::FileArchiver::Result &)> cleanupTask,
::std::optional<::FileArchiver::WorldConverterExportSettings > const exportSetting,
::Core::Path const & targetFolder )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _printLevelResultMessage()

MCAPI void FileArchiver::_printLevelResultMessage ( ::FileArchiver::Result const & result)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _printMessage()

MCAPI void FileArchiver::_printMessage ( ::std::string const & message)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _tryBeginExportLevel()

MCAPI::FileArchiver::Result FileArchiver::_tryBeginExportLevel ( ::std::string const & levelId,
::Core::Path const & exportFilePath,
::FileArchiver::ShowToast const showToast )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _validatePremiumUpgradePacks()

MCAPI bool FileArchiver::_validatePremiumUpgradePacks ( ::Core::Path const & filePath)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ exportCurrentEditorLevel()

MCAPI ::Bedrock::Threading::Async<::FileArchiver::Result > FileArchiver::exportCurrentEditorLevel ( ::Level * level,
::Core::Path const & exportFilePath,
::gsl::not_null<::std::shared_ptr<::FileArchiver::InterventionPublishers > > interventionPublishers,
::std::optional<::FileArchiver::WorldConverterExportSettings > exportSetting,
::FileArchiver::ExportType exportType,
::FileArchiver::ShowToast toast )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ exportCurrentLevel()

MCAPI void FileArchiver::exportCurrentLevel ( ::Level * level,
bool isBundle,
::FileArchiver::ExportType exportType,
::Core::Path const & exportFilePath,
::std::function< void(::FileArchiver::Result &)> exportCallback,
::gsl::not_null<::std::shared_ptr<::FileArchiver::InterventionPublishers > > interventionPublishers )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ exportPack()

MCAPI void FileArchiver::exportPack ( ::Core::Path const & path,
::Core::Path const & exportFilePath,
::std::function< void(::FileArchiver::Result &)> exportCallback )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _revertPremiumUpgradePacks()

MCAPI void FileArchiver::_revertPremiumUpgradePacks ( ::Core::Path const & filePath)
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ EXTENSION_PROJECT()

MCAPI ::std::string const & FileArchiver::EXTENSION_PROJECT ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ EXTENSION_RESOURCEPACK()

MCAPI ::std::string const & FileArchiver::EXTENSION_RESOURCEPACK ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ EXTENSION_TEMPLATE()

MCAPI ::std::string const & FileArchiver::EXTENSION_TEMPLATE ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ EXTENSION_VANILLA()

MCAPI ::std::string const & FileArchiver::EXTENSION_VANILLA ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ IMPORT_LOCK_FILE()

MCAPI ::std::string const & FileArchiver::IMPORT_LOCK_FILE ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor()

MCAPI void * FileArchiver::$ctor ( ::Scheduler & scheduler,
::ILevelListCache & levelListCache,
::LevelStorageSource & levelStorageSource,
::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 )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $generateFilePickerSettings()

MCAPI ::std::shared_ptr<::FilePickerSettings > FileArchiver::$generateFilePickerSettings ( ::std::vector<::FileArchiver::ExportType > const & types,
::std::string const &  ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftable()

MCAPI void ** Bedrock::EnableNonOwnerReferences::$vftable ( )
staticinherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: