LeviLamina
Loading...
Searching...
No Matches
LegacyWorldConverter.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/screens/models/LegacyWorldConversionManager.h"
7#include "mc/client/legacy/ImportStatus.h"
8#include "mc/deps/core/file/PathBuffer.h"
9#include "mc/util/CallbackToken.h"
10
11// auto generated forward declare list
12// clang-format off
13class IClientInstance;
14class IMinecraftGame;
16struct ImportResult;
17struct LegacyWorldInfo;
18namespace Legacy { class WorldImporter; }
19namespace Legacy { class WorldProcessRequest; }
20// clang-format on
21
22class LegacyWorldConverter : public ::std::enable_shared_from_this<::LegacyWorldConverter> {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 8, ::IMinecraftGame&> mMinecraftGame;
27 ::ll::TypedStorage<8, 8, ::IClientInstance&> mClient;
28 ::ll::TypedStorage<8, 8, ::MainMenuScreenModel&> mModel;
29 ::ll::TypedStorage<8, 24, ::std::vector<::LegacyWorldInfo>> mLegacyWorldList;
30 ::ll::TypedStorage<8, 24, ::std::vector<::LegacyWorldInfo>> mRetailToPreviewWorldList;
31 ::ll::TypedStorage<1, 1, bool> mFetchingLegacyWorldsInProgress;
32 ::ll::TypedStorage<1, 1, bool> mLegacyWorldsFetched;
33 ::ll::TypedStorage<1, 1, bool> mFoundLegacyWorlds;
34 ::ll::TypedStorage<8, 48, ::LegacyWorldConversionManager> mLegacyWorldConversionManager;
35 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Legacy::WorldImporter>> mLegacyWorldImporter;
36 ::ll::TypedStorage<8, 16, ::CallbackToken> mRetrieveCallbackToken;
37 ::ll::TypedStorage<8, 16, ::CallbackToken> mImportCallbackToken;
38 // NOLINTEND
39
40public:
41 // prevent constructor by default
42 LegacyWorldConverter& operator=(LegacyWorldConverter const&);
43 LegacyWorldConverter(LegacyWorldConverter const&);
44 LegacyWorldConverter();
45
46public:
47 // member functions
48 // NOLINTBEGIN
49 MCAPI void _processLegacyWorld(::std::shared_ptr<::Legacy::WorldProcessRequest> processRequest);
50
51 MCAPI void convertLegacyWorld(
52 ::LegacyWorldInfo worldInfo,
53 ::std::string const& newWorldDir,
54 ::std::function<void(::Legacy::ImportStatus, float, ::std::shared_ptr<::ImportResult>)> callback
55 );
56
57 MCAPI ::Core::PathBuffer<::std::string> createUniquePathForWorld() const;
58
59 MCAPI void handleLegacyWorldConversionComplete(::ImportResult const& result);
60
61 MCAPI ~LegacyWorldConverter();
62 // NOLINTEND
63
64public:
65 // destructor thunk
66 // NOLINTBEGIN
67 MCAPI void $dtor();
68 // NOLINTEND
69};
Definition IClientInstance.h:5
Definition IMinecraftGame.h:5
Definition LegacyWorldConverter.h:5
Definition WorldImporter.h:7
Definition WorldProcessRequest.h:7
Definition MainMenuScreenModel.h:5
Definition ImportResult.h:5
Definition LegacyWorldInfo.h:5