LeviLamina
Loading...
Searching...
No Matches
LegacyChunkStorage.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/PathBuffer.h"
7#include "mc/platform/threading/Mutex.h"
8#include "mc/world/level/chunk/ChunkSource.h"
9#include "mc/world/level/levelgen/synth/PerlinSimplexNoise.h"
10#include "mc/world/level/storage/StorageVersion.h"
11
12// auto generated forward declare list
13// clang-format off
14class Biome;
15class ChunkPos;
16class LevelChunk;
17class LevelStorage;
18class RegionFile;
20// clang-format on
21
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<1, 1, bool> mDone;
27 ::ll::TypedStorage<8, 40, ::PerlinSimplexNoise const> mGrassNoise;
28 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string> const> mLevelPath;
29 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string> const> mImportedChunksPath;
30 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::RegionFile>> mRegionFile;
31 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::RegionFile>> mEntitiesFile;
32 ::ll::TypedStorage<4, 4, ::StorageVersion> mLoadedStorageVersion;
33 ::ll::TypedStorage<8, 8, ::Biome&> mDefaultBiome;
34 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ChunkPos, ::std::string>> mChunkEntities;
35 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ChunkPos, ::std::string>> mChunkBlockEntities;
36 ::ll::TypedStorage<8, 80, ::Bedrock::Threading::Mutex> mRegionFileMutex;
37 ::ll::TypedStorage<8, 80, ::Bedrock::Threading::Mutex> mChunkMapMutex;
38 // NOLINTEND
39
40public:
41 // prevent constructor by default
42 LegacyChunkStorage& operator=(LegacyChunkStorage const&);
45
46public:
47 // virtual functions
48 // NOLINTBEGIN
49 // vIndex: 0
50 virtual ~LegacyChunkStorage() /*override*/;
51
52 // vIndex: 11
53 virtual void loadChunk(::LevelChunk& lc, bool forceImmediateReplacementDataLoad) /*override*/;
54
55 // vIndex: 14
56 virtual bool saveLiveChunk(::LevelChunk& lc) /*override*/;
57
58 // vIndex: 20
59 virtual void acquireDiscarded(::std::unique_ptr<::LevelChunk, ::LevelChunkFinalDeleter> ptr) /*override*/;
60 // NOLINTEND
61
62public:
63 // member functions
64 // NOLINTBEGIN
66 ::std::unique_ptr<::ChunkSource> parent,
67 ::LevelStorage& levelStorage,
68 ::StorageVersion v,
69 ::Biome& defaultBiome
70 );
71
72 MCNAPI bool _isImported(::ChunkPos const& pos);
73
74 MCNAPI bool _loadChunk(::LevelChunk& lc);
75
76 MCNAPI void _loadEntities();
77
78 MCNAPI void _markChunkAsImported(::ChunkPos const& pos);
79
80 MCNAPI bool _openRegionFile();
81 // NOLINTEND
82
83public:
84 // constructor thunks
85 // NOLINTBEGIN
86 MCNAPI void* $ctor(
87 ::std::unique_ptr<::ChunkSource> parent,
88 ::LevelStorage& levelStorage,
89 ::StorageVersion v,
90 ::Biome& defaultBiome
91 );
92 // NOLINTEND
93
94public:
95 // destructor thunk
96 // NOLINTBEGIN
97 MCNAPI void $dtor();
98 // NOLINTEND
99
100public:
101 // virtual function thunks
102 // NOLINTBEGIN
103 MCNAPI void $loadChunk(::LevelChunk& lc, bool forceImmediateReplacementDataLoad);
104
105 MCNAPI bool $saveLiveChunk(::LevelChunk& lc);
106
107 MCNAPI void $acquireDiscarded(::std::unique_ptr<::LevelChunk, ::LevelChunkFinalDeleter> ptr);
108 // NOLINTEND
109
110public:
111 // vftables
112 // NOLINTBEGIN
113 MCNAPI static void** $vftable();
114 // NOLINTEND
115};
Definition Biome.h:26
Definition ChunkPos.h:11
Definition ChunkSource.h:34
Definition LegacyChunkStorage.h:22
MCAPI void _markChunkAsImported(::ChunkPos const &pos)
MCAPI bool _loadChunk(::LevelChunk &lc)
MCAPI bool $saveLiveChunk(::LevelChunk &lc)
MCAPI bool _openRegionFile()
static MCAPI void ** $vftable()
MCAPI bool _isImported(::ChunkPos const &pos)
MCAPI void _loadEntities()
MCAPI void * $ctor(::std::unique_ptr<::ChunkSource > parent, ::LevelStorage &levelStorage, ::StorageVersion v, ::Biome &defaultBiome)
MCAPI void $loadChunk(::LevelChunk &lc, bool forceImmediateReplacementDataLoad)
MCAPI void $acquireDiscarded(::std::unique_ptr<::LevelChunk, ::LevelChunkFinalDeleter > ptr)
MCAPI void $dtor()
MCAPI LegacyChunkStorage(::std::unique_ptr<::ChunkSource > parent, ::LevelStorage &levelStorage, ::StorageVersion v, ::Biome &defaultBiome)
Definition LevelChunk.h:74
Definition LevelStorage.h:25
Definition RegionFile.h:11
Definition LevelChunkFinalDeleter.h:5