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

Method GetNumChunksLoaded

src/ChunkMap.cpp:2850–2861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2848
2849
2850int cChunkMap::cChunkLayer::GetNumChunksLoaded(void) const
2851{
2852 int NumChunks = 0;
2853 for (size_t i = 0; i < ARRAYCOUNT(m_Chunks); ++i)
2854 {
2855 if (m_Chunks[i] != NULL)
2856 {
2857 NumChunks++;
2858 }
2859 } // for i - m_Chunks[]
2860 return NumChunks;
2861}
2862
2863
2864

Callers 1

GetNumChunksMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected