MCPcopy Create free account
hub / github.com/crossuo/crossuo / GetBlock

Method GetBlock

src/Managers/MapManager.cpp:556–568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

554}
555
556CMapBlock *CMapManager::GetBlock(uint32_t index)
557{
558 CMapBlock *block = nullptr;
559 if (index < MaxBlockIndex)
560 {
561 block = m_Blocks[index];
562 if (block != nullptr)
563 {
564 block->LastAccessTime = g_Ticks;
565 }
566 }
567 return block;
568}
569
570CMapBlock *CMapManager::AddBlock(uint32_t index)
571{

Callers 7

UpdateMaxDrawZMethod · 0.80
CalculateRenderListMethod · 0.80
AddLightMethod · 0.80
GenerateMapMethod · 0.80
CreateItemsListMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected