mirror of
https://github.com/SWG-Source/src.git
synced 2026-09-11 23:45:01 -04:00
for completeness' sake
This commit is contained in:
@@ -63,6 +63,7 @@ public:
|
||||
IndexKey(const NetworkId &objectId, int nameId);
|
||||
bool operator==(const IndexKey &rhs) const;
|
||||
bool operator<(const IndexKey &rhs) const;
|
||||
bool operator>(const IndexKey &rhs) const;
|
||||
};
|
||||
|
||||
struct ObjvarValue
|
||||
@@ -115,6 +116,16 @@ inline bool ObjvarBuffer::IndexKey::operator<(const IndexKey &rhs) const
|
||||
return false;
|
||||
}
|
||||
|
||||
inline bool ObjvarBuffer::IndexKey::operator>(const IndexKey &rhs) const
|
||||
{
|
||||
if (m_objectId > rhs.m_objectId)
|
||||
return true;
|
||||
else if (m_objectId == rhs.m_objectId)
|
||||
return (m_nameId > rhs.m_nameId);
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
// ======================================================================
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user