LeviLamina
Loading...
Searching...
No Matches
WorldTransferer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/world/IWorldStorageHandler.h"
7#include "mc/client/world/TransferResult.h"
8#include "mc/deps/core/utility/NonOwnerPointer.h"
9#include "mc/world/level/FileArchiver.h"
10
11// auto generated forward declare list
12// clang-format off
13class FileArchiver;
14class ILevelListCache;
16namespace World { class IWorldStorageHandler; }
17namespace World { struct WorldID; }
18// clang-format on
19
20namespace World {
21
22class WorldTransferer {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<1, 1, bool> mIsEditorModeEnabled;
27 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::FileArchiver>> mFileArchiver;
28 ::ll::TypedStorage<8, 8, ::ILevelListCache&> mLevelListCache;
29 ::ll::TypedStorage<8, 8, ::IMinecraftEventing&> mEventing;
30 ::ll::TypedStorage<8, 8, ::World::IWorldStorageHandler&> mWorldStorageHandler;
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
35 WorldTransferer& operator=(WorldTransferer const&);
36 WorldTransferer(WorldTransferer const&);
37 WorldTransferer();
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCAPI void _debugImportWorldsNintendoSwitch(::std::function<void(::World::TransferResult)> onImportComplete);
43
44 MCAPI void
45 _handlePickDone(::FileArchiver::Result result, ::std::function<void(::World::TransferResult)> onImportComplete);
46
47 MCAPI void _importWorldWindows(::std::function<void(::World::TransferResult)> onImportComplete);
48
49 MCAPI void backupWorld(
50 ::World::WorldID const& worldID,
51 ::std::function<void(::World::WorldID const&, ::World::IWorldStorageHandler::DuplicateWorldResult)>
52 onBackupComplete
53 );
54
55 MCAPI void debugImportWorlds(::std::function<void(::World::TransferResult)> onImportComplete);
56
57 MCAPI ::std::string getDebugImportPath() const;
58
59 MCAPI float getProgress();
60
61 MCAPI void importWorld(::std::function<void(::World::TransferResult)> onImportComplete);
62
63 MCAPI bool platformSupportsDebugImport() const;
64 // NOLINTEND
65
66public:
67 // static functions
68 // NOLINTBEGIN
69 MCAPI static ::std::string
70 calculateImportedWorldName(::std::string const& originalName, ::ILevelListCache& levelListCache);
71 // NOLINTEND
72};
73
74} // namespace World
Definition FileArchiver.h:36
Definition ILevelListCache.h:27
Definition IMinecraftEventing.h:138
Definition IWorldStorageHandler.h:7
Definition WorldTransferer.h:7
Definition WorldID.h:7