22class ChunkViewSource :
public ::ChunkSource {
26 ::ll::TypedStorage<4, 4, ::ChunkSource::LoadMode> mParentLoadMode;
27 ::ll::TypedStorage<8, 304, ::GridArea<::std::shared_ptr<::LevelChunk>>> mArea;
28 ::ll::TypedStorage<8, 8, ::ChunkSource&> mMainSource;
33 ChunkViewSource& operator=(ChunkViewSource
const&);
39 virtual ::std::shared_ptr<::LevelChunk> getExistingChunk(
::ChunkPos const& pos) ;
41 virtual ::std::shared_ptr<::LevelChunk> getRandomChunk(
::Random& random) ;
43 virtual void acquireDiscarded(::std::unique_ptr<::LevelChunk, ::LevelChunkFinalDeleter> ptr) ;
45 virtual ::std::shared_ptr<::LevelChunk>
46 createNewChunk(
::ChunkPos const& cp, ::ChunkSource::LoadMode lm,
bool readOnly) ;
48 virtual bool isWithinWorldLimit(
::ChunkPos const& cp)
const ;
50 virtual void setLevelChunk(::std::shared_ptr<::LevelChunk> lc) ;
52 virtual ::std::shared_ptr<::br::worldgen::StructureInstance>
55 virtual ~ChunkViewSource() ;
61 MCAPI ChunkViewSource(::ChunkViewSource
const& otherChunkViewSource);
66 ::ChunkSourceViewGenerateMode chunkViewGenerateMode,
67 ::std::function<
void(::gsl::span<::std::shared_ptr<::LevelChunk>>)> add,
68 float const* serverBuildRatio
75 ::ChunkSourceViewGenerateMode chunkViewGenerateMode,
76 ::std::function<
void(::gsl::span<::std::shared_ptr<::LevelChunk>>)> add,
77 float const* serverBuildRatio
84 ::ChunkSourceViewGenerateMode chunkViewGenerateMode,
85 ::std::function<
void(::gsl::span<::std::shared_ptr<::LevelChunk>>)> add,
86 float const* serverBuildRatio
89 MCAPI
void rebuildSpecificArea(
92 ::std::function<
void(::gsl::span<::std::shared_ptr<::LevelChunk>>)>
99 MCAPI
void* $ctor(::ChunkViewSource
const& otherChunkViewSource);
111 MCAPI ::std::shared_ptr<::LevelChunk> $getExistingChunk(
::ChunkPos const& pos);
113 MCAPI ::std::shared_ptr<::LevelChunk> $getRandomChunk(
::Random& random);
115 MCAPI
void $acquireDiscarded(::std::unique_ptr<::LevelChunk, ::LevelChunkFinalDeleter> ptr);
117 MCFOLD ::std::shared_ptr<::LevelChunk>
118 $createNewChunk(
::ChunkPos const& cp, ::ChunkSource::LoadMode lm,
bool readOnly);
120 MCAPI
bool $isWithinWorldLimit(
::ChunkPos const& cp)
const;
122 MCAPI
void $setLevelChunk(::std::shared_ptr<::LevelChunk> lc);
124 MCAPI ::std::shared_ptr<::br::worldgen::StructureInstance>