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>
289 generateFilePickerSettings(::std::vector<::FileArchiver::ExportType>
const& types, ::std::string
const&)
const;
298 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager>
const& pathManager,
299 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository>
const& resourcePackRepository,
300 bool isEditorModeEnabled,
301 ::std::unique_ptr<::FileArchiver::IWorldConverter> worldConverter,
302 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> keyProvider,
303 ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv> levelDbEnv,
304 ::std::function<
void(::std::string
const&)> displayMessageFunction
307 MCAPI
void _clearArchiverState();
312 MCAPI ::Bedrock::Threading::Async<::FileArchiver::Result> _enqueueExportWorldTasks(
314 ::std::string
const& worldId,
316 ::FileArchiver::ExportType exportType,
317 ::FileArchiver::ShowToast showToast,
320 ::std::function<
void(
::LevelData&)> convertPreExportCallback,
325 MCAPI
void _exportLevelFiles(
328 ::std::shared_ptr<::FileArchiver::ExportData> exportData
333 MCAPI
void _printLevelStartMessage();
335 MCAPI
void _printMessage(::std::string
const& message);
337 MCAPI ::FileArchiverOutcome
338 _processWorldForTemplate(::std::shared_ptr<::FileArchiver::ExportData>
const& exportData);
340 MCAPI
void _revertPremiumUpgradePacks(
::Core::Path const& filePath);
342 MCAPI ::FileArchiver::Result _tryBeginExportLevel(
343 ::std::string
const& levelId,
345 ::FileArchiver::ShowToast showToast
348 MCAPI
bool _validatePremiumUpgradePacks(
::Core::Path const& filePath);
350 MCAPI ::std::string copyLevel(::std::string
const& worldId);
352 MCAPI ::Bedrock::Threading::Async<::FileArchiver::Result> exportCurrentEditorLevel(
355 ::std::function<
void(
::LevelData&)> preExportConvertedCallback,
358 ::FileArchiver::ExportType exportType,
359 ::FileArchiver::ShowToast toast
362 MCAPI ::Bedrock::Threading::Async<::FileArchiver::Result> exportCurrentLevel(
365 ::FileArchiver::ExportType exportType,
369 MCAPI
void exportCurrentLevel(
372 ::FileArchiver::ExportType exportType,
377 MCAPI ::Bedrock::Threading::Async<::FileArchiver::Result>
380 MCAPI
void exportPack(
386 MCAPI ::FileArchiver::State getCurrentState();
388 MCAPI ::Bedrock::NotNullNonOwnerPtr<::FileArchiver::ProgressReporter> getProgressReporter();
390 MCAPI
void setWorldConverter(::std::unique_ptr<::FileArchiver::IWorldConverter> worldConverter);
396 MCAPI static ::std::string
const& EXTENSION_ADDON();
398 MCAPI static ::std::string
const& EXTENSION_EDITOR_ADDON();
400 MCAPI static ::std::string
const& EXTENSION_PROJECT();
402 MCAPI static ::std::string
const& EXTENSION_RESOURCEPACK();
404 MCAPI static ::std::string
const& EXTENSION_TEMPLATE();
406 MCAPI static ::std::string
const& EXTENSION_VANILLA();
408 MCAPI static ::std::string
const& IMPORT_LOCK_FILE();
417 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager>
const& pathManager,
418 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository>
const& resourcePackRepository,
419 bool isEditorModeEnabled,
420 ::std::unique_ptr<::FileArchiver::IWorldConverter> worldConverter,
421 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> keyProvider,
422 ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv> levelDbEnv,
423 ::std::function<
void(::std::string
const&)> displayMessageFunction
436 MCAPI ::std::shared_ptr<::FilePickerSettings>
437 $generateFilePickerSettings(::std::vector<::FileArchiver::ExportType>
const& types, ::std::string
const&)
const;
Definition IContentKeyProvider.h:13