mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-07-06 08:57:11 +02:00
Remove the _cmp metamethod from the entity types because it's useless for registered types.
This commit is contained in:
@ -43,23 +43,6 @@ CPickup::~CPickup()
|
||||
/* ... */
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Int32 CPickup::Cmp(const CPickup & o) const
|
||||
{
|
||||
if (m_ID == o.m_ID)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else if (m_ID > o.m_ID)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const String & CPickup::ToString() const
|
||||
{
|
||||
@ -451,7 +434,6 @@ void Register_CPickup(HSQUIRRELVM vm)
|
||||
Class< CPickup, NoConstructor< CPickup > >(vm, Typename::Str)
|
||||
// Meta-methods
|
||||
.SquirrelFunc(_SC("_typename"), &Typename::Fn)
|
||||
.Func(_SC("_cmp"), &CPickup::Cmp)
|
||||
.Func(_SC("_tostring"), &CPickup::ToString)
|
||||
// Static Values
|
||||
.SetStaticValue(_SC("MaxID"), CPickup::Max)
|
||||
|
Reference in New Issue
Block a user