1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00
SqMod/source/Entity/Vehicle.cpp

30 lines
841 B
C++
Raw Normal View History

2015-09-30 02:56:11 +02:00
#include "Entity/Vehicle.hpp"
#include "Register.hpp"
// ------------------------------------------------------------------------------------------------
namespace SqMod {
// ------------------------------------------------------------------------------------------------
bool Register_CVehicle(HSQUIRRELVM vm)
{
if (!Register_Reference< CVehicle >(vm, _SC("BaseVehicle")))
{
LogDbg("Unable to register the base class <BaseVehicle> for <CVehicle> type");
return false;
}
LogDbg("Beginning registration of <CVehicle> type");
Sqrat::RootTable(vm).Bind(_SC("CVehicle"), Sqrat::DerivedClass< CVehicle, Reference< CVehicle > >(vm, _SC("CVehicle"))
.Ctor()
.Ctor< SQInt32 >()
);
LogDbg("Registration of <CVehicle> type was successful");
return true;
}
} // Namespace:: SqMod