MCPcopy Create free account
hub / github.com/ddnet/ddnet / SnapNumItems

Method SnapNumItems

src/engine/client/client.cpp:898–904  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

896}
897
898int CClient::SnapNumItems(int SnapId) const
899{
900 dbg_assert(SnapId >= 0 && SnapId < NUM_SNAPSHOT_TYPES, "invalid SnapId");
901 if(!m_aapSnapshots[g_Config.m_ClDummy][SnapId])
902 return 0;
903 return m_aapSnapshots[g_Config.m_ClDummy][SnapId]->m_pAltSnap->NumItems();
904}
905
906void CClient::SnapSetStaticsize(int ItemType, int Size)
907{

Callers 3

ProcessEventsMethod · 0.45
OnNewSnapshotMethod · 0.45
SnapCollectEntitiesMethod · 0.45

Calls 1

NumItemsMethod · 0.45

Tested by

no test coverage detected