void CPartitionGrid::GetMemoryUsage( ICrySizer* pSizer ) const { SIZER_COMPONENT_NAME(pSizer,"Partition Grid"); pSizer->AddObject(m_pSectorGroups,sizeof(SectorGroup*) * m_nWidth * m_nHeight ); pSizer->AddObject( CPartitionGrid::g_SectorGroupPoolAlloc ); pSizer->AddObject( CPartitionGrid::g_GridLocationPoolAlloc ); }
void CFlowNode_AIStateGuard::DerivedMemoryUsage(ICrySizer* pSizer) const { SIZER_COMPONENT_NAME(pSizer, "CFlowNode_AIStateRoam"); if(!pSizer->Add(this)) return; pSizer->Add(m_State); }
void CEntityObject::GetMemoryUsage( ICrySizer* pSizer ) const { { SIZER_COMPONENT_NAME(pSizer,"CEntityObject Allocator"); pSizer->AddObject(g_Alloc_EntitySlot); } pSizer->AddObject(pCharacter); pSizer->AddObject(pStatObj); pSizer->AddObject(pLight); pSizer->AddObject(pChildRenderNode); pSizer->AddObject(pMaterial); }
//-------------------------------------------------------------------------------------------------- // Name: GetMemoryUsage // Desc: Adds the size of the system //-------------------------------------------------------------------------------------------------- void CBreakableGlassSystem::GetMemoryUsage(ICrySizer* pSizer) const { // System usage SIZER_COMPONENT_NAME(pSizer, "BreakableGlassSystem"); pSizer->AddObject(this, sizeof(*this)); }//-------------------------------------------------------------------------------------------------