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