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
48 MCAPI ~WorldTransferer();
49 // NOLINTEND
50
51public:
52 // static functions
53 // NOLINTBEGIN
54 MCAPI static ::std::string
55 calculateImportedWorldName(::std::string const& originalName, ::ILevelListCache& levelListCache);
56 // NOLINTEND
57
58public:
59 // destructor thunk
60 // NOLINTBEGIN
61 MCFOLD void $dtor();
62 // NOLINTEND
63};
64
65} // namespace World
Definition FileArchiver.h:35
Definition ILevelListCache.h:27
Definition IMinecraftEventing.h:137
Definition IWorldStorageHandler.h:7
Definition WorldTransferer.h:7