MCPcopy Create free account
hub / github.com/Hopson97/MineCraft-One-Week-Challenge / load

Method load

Source/World/Chunk/Chunk.cpp:110–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110void Chunk::load(TerrainGenerator &generator)
111{
112 if (hasLoaded())
113 return;
114
115 generator.generateTerrainFor(*this);
116 m_isLoaded = true;
117}
118
119ChunkSection &Chunk::getSection(int index)
120{

Callers 1

loadChunkMethod · 0.80

Calls 1

generateTerrainForMethod · 0.45

Tested by

no test coverage detected