MCPcopy Create free account
hub / github.com/cuberite/cuberite / Save

Method Save

src/ChunkMap.cpp:2891–2901  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2889
2890
2891void cChunkMap::cChunkLayer::Save(void)
2892{
2893 cWorld * World = m_Parent->GetWorld();
2894 for (size_t i = 0; i < ARRAYCOUNT(m_Chunks); ++i)
2895 {
2896 if ((m_Chunks[i] != NULL) && m_Chunks[i]->IsValid() && m_Chunks[i]->IsDirty())
2897 {
2898 World->GetStorage().QueueSaveChunk(m_Chunks[i]->GetPosX(), m_Chunks[i]->GetPosY(), m_Chunks[i]->GetPosZ());
2899 }
2900 } // for i - m_Chunks[]
2901}
2902
2903
2904

Callers 3

SaveAllChunksMethod · 0.45
SaveMapDataMethod · 0.45
~cWorldMethod · 0.45

Calls 7

IsDirtyMethod · 0.80
QueueSaveChunkMethod · 0.80
GetWorldMethod · 0.45
IsValidMethod · 0.45
GetPosXMethod · 0.45
GetPosYMethod · 0.45
GetPosZMethod · 0.45

Tested by

no test coverage detected