mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 16:57:16 +01:00
30 lines
829 B
C++
30 lines
829 B
C++
|
#include "Entity/Sphere.hpp"
|
||
|
#include "Register.hpp"
|
||
|
|
||
|
// ------------------------------------------------------------------------------------------------
|
||
|
namespace SqMod {
|
||
|
|
||
|
// ------------------------------------------------------------------------------------------------
|
||
|
bool Register_CSphere(HSQUIRRELVM vm)
|
||
|
{
|
||
|
if (!Register_Reference< CSphere >(vm, _SC("BaseSphere")))
|
||
|
{
|
||
|
LogDbg("Unable to register the base class <BaseSphere> for <CSphere> type");
|
||
|
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
LogDbg("Beginning registration of <CSphere> type");
|
||
|
|
||
|
Sqrat::RootTable(vm).Bind(_SC("CSphere"), Sqrat::DerivedClass< CSphere, Reference< CSphere > >(vm, _SC("CSphere"))
|
||
|
.Ctor()
|
||
|
.Ctor< SQInt32 >()
|
||
|
);
|
||
|
|
||
|
LogDbg("Registration of <CSphere> type was successful");
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
} // Namespace:: SqMod
|