46 enum class State :
int {
52 enum class ExportType :
int {
56 PlayableEditorLevel = 3,
60 enum class ShowToast :
int {
69 ::ll::TypedStorage<4, 4, ::FileArchiverOutcome> outcome;
70 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> fileName;
71 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> levelId;
72 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> originalLevelId;
92 ::ll::TypedStorage<8, 32, ::std::string> mLevelId;
93 ::ll::TypedStorage<8, 8, uint64> mTotalFileCount;
94 ::ll::TypedStorage<8, 104, ::FileArchiver::Result> mResult;
95 ::ll::TypedStorage<8, 16, ::Bedrock::UniqueOwnerPointer<::LevelStorage>> mLevelStorage;
96 ::ll::TypedStorage<8, 8, ::LevelData*> mLevelData;
116 ::ll::TypedStorage<4, 4, ::FileArchiverOutcome> outcome;
117 ::ll::TypedStorage<8, 32, ::std::string> copiedLevelId;
118 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> copiedLevelPath;
126 ::ll::TypedStorage<8, 80, ::Bedrock::Threading::Mutex> mProgressLock;
127 ::ll::TypedStorage<8, 32, ::std::string> mProgressTitle;
128 ::ll::TypedStorage<8, 32, ::std::string> mProgressMessage;
138 virtual void clear() ;
144 MCAPI
void setProgressMessage(::std::string
const& message);
171 using PreExportConvertedCallback = ::std::function<void(
::LevelData&)>;
180 virtual void enqueueConvertImportingWorldTasks(
181 ::std::shared_ptr<::FileArchiver::Result>&,
182 ::Bedrock::NotNullNonOwnerPtr<::FileArchiver::ProgressReporter>,
187 virtual bool shouldCopyWorldForConversion(::std::string
const&)
const = 0;
190 virtual void enqueueConvertExportingWorldTasks(
191 ::std::shared_ptr<::FileArchiver::ExportData>&,
192 ::Bedrock::NotNullNonOwnerPtr<::FileArchiver::ProgressReporter>,
219 ::ll::TypedStorage<4, 4, ::FileArchiverOutcome> outcome;
220 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> path;
227 ::ll::TypedStorage<4, 4, ::FileArchiverOutcome> outcome;
228 ::ll::TypedStorage<8, 24, ::std::vector<::FileArchiver::ImportWorldsResult::ImportWorldResult>> worlds;
236 ::ll::TypedStorage<1, 1, bool> isCloudImport;
237 ::ll::TypedStorage<1, 1, bool> allowMultiplayer;
238 ::ll::TypedStorage<8, 32, ::std::string> educationOid;
239 ::ll::TypedStorage<8, 32, ::std::string> cTag;
240 ::ll::TypedStorage<8, 32, ::std::string> name;
259 ::ll::TypedStorage<8, 192, ::FileArchiver::ProgressReporter> mProgress;
260 ::ll::TypedStorage<8, 80, ::Bedrock::Threading::Mutex> mStateLock;
261 ::ll::TypedStorage<4, 4, ::FileArchiver::State> mCurrentState;
262 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager>> mFilePathManager;
263 ::ll::TypedStorage<8, 64, ::std::function<void(::std::string
const&)>> mDisplayMessageCallback;
264 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository>> mResourcePackRepository;
265 ::ll::TypedStorage<8, 8, ::ILevelListCache&> mLevelListCache;
266 ::ll::TypedStorage<8, 24, ::std::vector<::Core::PathBuffer<::std::string>>> mSuccessfullyFiledArchives;
267 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mIOTaskGroup;
268 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::FileArchiver::IWorldConverter>> mWorldConverter;
269 ::ll::TypedStorage<1, 1, bool> mIsEditorModeEnabled;
270 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>> mKeyProvider;
271 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv>> mLevelDbEnv;
272 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::FileArchiver::EduCloudImportInfo>>
289 virtual ::std::shared_ptr<::FilePickerSettings> generateFilePickerSettings(
290 ::std::vector<::FileArchiver::ExportType>
const& types,
291 ::std::string
const& worldId
301 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager>
const& pathManager,
302 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository>
const& resourcePackRepository,
303 bool isEditorModeEnabled,
304 ::std::unique_ptr<::FileArchiver::IWorldConverter> worldConverter,
305 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> keyProvider,
306 ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv> levelDbEnv,
307 ::std::function<
void(::std::string
const&)> displayMessageFunction
310 MCAPI
void _clearArchiverState();
315 MCAPI ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::FileArchiver::Result>> _enqueueExportWorldTasks(
317 ::std::string
const& worldId,
319 ::FileArchiver::ExportType exportType,
320 ::FileArchiver::ShowToast showToast,
323 ::std::function<
void(
::LevelData&)> convertPreExportCallback
326 MCAPI
void _exportLevelFiles(
329 ::std::shared_ptr<::FileArchiver::ExportData> exportData
334 MCAPI
void _printLevelStartMessage();
336 MCAPI
void _printMessage(::std::string
const& message);
338 MCAPI ::FileArchiverOutcome
339 _processWorldForTemplate(::std::shared_ptr<::FileArchiver::ExportData>
const& exportData);
341 MCAPI
void _revertPremiumUpgradePacks(
::Core::Path const& filePath);
343 MCAPI ::FileArchiver::Result _tryBeginExportLevel(
344 ::std::string
const& levelId,
346 ::FileArchiver::ShowToast showToast
349 MCAPI
bool _validatePremiumUpgradePacks(
::Core::Path const& filePath);
351 MCAPI ::std::string copyLevel(::std::string
const& worldId);
353 MCAPI ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::FileArchiver::Result>> exportCurrentEditorLevel(
356 ::std::function<
void(
::LevelData&)> preExportConvertedCallback,
357 ::FileArchiver::ExportType exportType,
358 ::FileArchiver::ShowToast toast
361 MCAPI ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::FileArchiver::Result>> exportCurrentLevel(
364 ::FileArchiver::ExportType exportType,
368 MCAPI
void exportCurrentLevel(
371 ::FileArchiver::ExportType exportType,
376 MCAPI ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::FileArchiver::Result>>
379 MCAPI
void exportPack(
385 MCAPI ::FileArchiver::State getCurrentState();
387 MCAPI ::Bedrock::NotNullNonOwnerPtr<::FileArchiver::ProgressReporter> getProgressReporter();
389 MCAPI
void setWorldConverter(::std::unique_ptr<::FileArchiver::IWorldConverter> worldConverter);
395 MCAPI static ::std::string
const& EXTENSION_ADDON();
397 MCAPI static ::std::string
const& EXTENSION_EDITOR_ADDON();
399 MCAPI static ::std::string
const& EXTENSION_PROJECT();
401 MCAPI static ::std::string
const& EXTENSION_RESOURCEPACK();
403 MCAPI static ::std::string
const& EXTENSION_TEMPLATE();
405 MCAPI static ::std::string
const& EXTENSION_VANILLA();
407 MCAPI static ::std::string
const& IMPORT_LOCK_FILE();
416 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager>
const& pathManager,
417 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository>
const& resourcePackRepository,
418 bool isEditorModeEnabled,
419 ::std::unique_ptr<::FileArchiver::IWorldConverter> worldConverter,
420 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> keyProvider,
421 ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv> levelDbEnv,
422 ::std::function<
void(::std::string
const&)> displayMessageFunction
435 MCAPI ::std::shared_ptr<::FilePickerSettings> $generateFilePickerSettings(
436 ::std::vector<::FileArchiver::ExportType>
const& types,
437 ::std::string
const& worldId
Definition IContentKeyProvider.h:13