3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/world/WorldID.h"
7#include "mc/deps/core/utility/NonOwnerPointer.h"
8#include "mc/deps/core/utility/UniqueOwnerPointer.h"
9#include "mc/util/GridArea.h"
10#include "mc/world/level/ChunkPos.h"
28 enum class State :
int {
34 enum class Result :
int {
42 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mTaskGroup;
43 ::ll::TypedStorage<8, 8, ::ILevelListCache&> mLevelListCache;
44 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>> mKeyProvider;
45 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv>> mLevelDbEnv;
46 ::ll::TypedStorage<8, 16, ::Bedrock::UniqueOwnerPointer<::LevelStorage>> mLevelStorage;
47 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ChunkSource>> mLegacySource;
48 ::ll::TypedStorage<4, 4, ::World::InfiniteWorldConverter::State> mState;
49 ::ll::TypedStorage<8, 376, ::GridArea<::std::shared_ptr<::LevelChunk>>> mView;
50 ::ll::TypedStorage<8, 64, ::std::unordered_set<::ChunkPos>> mUnloaded;
51 ::ll::TypedStorage<4, 4, float> mProgress;
52 ::ll::TypedStorage<8, 32, ::World::WorldID> mWorldId;
53 ::ll::TypedStorage<8, 64, ::std::function<void()>> mOnCompleteCallback;
54 ::ll::TypedStorage<8, 64, ::std::function<void(::World::InfiniteWorldConverter::Result)>> mOnErrorCallback;
59 InfiniteWorldConverter& operator=(InfiniteWorldConverter
const&);
60 InfiniteWorldConverter(InfiniteWorldConverter
const&);
61 InfiniteWorldConverter();
66 MCAPI InfiniteWorldConverter(
67 ::ILevelListCache& levelListCache,
68 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>
const& keyProvider,
69 ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv> levelDbEnv
72 MCAPI
void _makeBackupOfLevel(::World::WorldID
const&
id);
74 MCAPI
void _resetState();
78 MCAPI
void makeWorldInfinite(
79 ::World::WorldID
const&
id,
80 ::std::function<
void()> onCompleteCallback,
81 ::std::function<
void(::World::InfiniteWorldConverter::Result)> onErrorCallback
84 MCAPI ~InfiniteWorldConverter();
91 ::ILevelListCache& levelListCache,
92 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>
const& keyProvider,
93 ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv> levelDbEnv
Definition ChunkSource.h:37
Definition IContentKeyProvider.h:13
Definition ILevelListCache.h:27
Definition LevelChunk.h:79
Definition LevelDbEnv.h:8
Definition LevelStorage.h:25
Definition TaskGroup.h:53
Definition InfiniteWorldConverter.h:7