1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-19 16:47:14 +02:00

Initial commit.

This commit is contained in:
Sandu Liviu Catalin
2015-09-30 03:56:11 +03:00
parent 4bd8e68a7b
commit 6ed02d0fd4
118 changed files with 23795 additions and 0 deletions

29
source/Entity/Vehicle.cpp Normal file
View File

@ -0,0 +1,29 @@
#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