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 // NOLINTEND
80
81public:
82 // constructor thunks
83 // NOLINTBEGIN
84 MCNAPI void* $ctor(
85 ::std::unique_ptr<::ChunkSource> parent,
86 ::LevelStorage& levelStorage,
87 ::StorageVersion v,
88 ::Biome& defaultBiome
89 );
90 // NOLINTEND
91
92public:
93 // destructor thunk
94 // NOLINTBEGIN
95 MCNAPI void $dtor();
96 // NOLINTEND
97
98public:
99 // virtual function thunks
100 // NOLINTBEGIN
101 MCNAPI void $loadChunk(::LevelChunk& lc, bool forceImmediateReplacementDataLoad);
102
103 MCNAPI bool $saveLiveChunk(::LevelChunk& lc);
104
105 MCNAPI void $acquireDiscarded(::std::unique_ptr<::LevelChunk, ::LevelChunkFinalDeleter> ptr);
106 // NOLINTEND
107
108public:
109 // vftables
110 // NOLINTBEGIN
111 MCNAPI static void** $vftable();
112 // NOLINTEND
113};
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)
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