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/TransferResult.h"
7#include "mc/deps/core/utility/NonOwnerPointer.h"
8#include "mc/world/level/FileArchiver.h"
9
10// auto generated forward declare list
11// clang-format off
12class FileArchiver;
13class ILevelListCache;
15namespace World { class IWorldStorageHandler; }
16// clang-format on
17
18namespace World {
19
20class WorldTransferer {
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::FileArchiver>> mFileArchiver;
25 ::ll::TypedStorage<8, 8, ::ILevelListCache&> mLevelListCache;
26 ::ll::TypedStorage<8, 8, ::IMinecraftEventing&> mEventing;
27 ::ll::TypedStorage<8, 8, ::World::IWorldStorageHandler&> mWorldStorageHandler;
28 // NOLINTEND
29
30public:
31 // prevent constructor by default
32 WorldTransferer& operator=(WorldTransferer const&);
33 WorldTransferer(WorldTransferer const&);
34 WorldTransferer();
35
36public:
37 // member functions
38 // NOLINTBEGIN
39 MCAPI void
40 _handlePickDone(::FileArchiver::Result result, ::std::function<void(::World::TransferResult)> onImportComplete);
41
42 MCAPI void _importWorldWindows(::std::function<void(::World::TransferResult)> onImportComplete);
43
44 MCAPI float getProgress();
45
46 MCAPI void importWorld(::std::function<void(::World::TransferResult)> onImportComplete);
47 // NOLINTEND
48
49public:
50 // static functions
51 // NOLINTBEGIN
52 MCAPI static ::std::string
53 calculateImportedWorldName(::std::string const& originalName, ::ILevelListCache& levelListCache);
54 // NOLINTEND
55};
56
57} // namespace World
Definition FileArchiver.h:36
Definition ILevelListCache.h:27
Definition IMinecraftEventing.h:134
Definition IWorldStorageHandler.h:7
Definition WorldTransferer.h:7