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

Class CEntComparer

src/game/client/gameclient.cpp:4812–4819  ·  view source on GitHub ↗

sort by id

Source from the content-addressed store, hash-verified

4810
4811 // sort by id
4812 class CEntComparer
4813 {
4814 public:
4815 bool operator()(const CSnapEntities &Lhs, const CSnapEntities &Rhs) const
4816 {
4817 return Lhs.m_Item.m_Id < Rhs.m_Item.m_Id;
4818 }
4819 };
4820
4821 std::sort(vItemData.begin(), vItemData.end(), CEntComparer());
4822 std::sort(vItemEx.begin(), vItemEx.end(), CEntComparer());

Callers 1

SnapCollectEntitiesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected