mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-07-27 19:21:47 +02:00
Initial commit.
This commit is contained in:
source
Base
AABB.cppAABB.hppCircle.cppCircle.hppColor3.cppColor3.hppColor4.cppColor4.hppQuaternion.cppQuaternion.hppShared.cppShared.hppSphere.cppSphere.hppVector2f.cppVector2f.hppVector2i.cppVector2i.hppVector2u.cppVector2u.hppVector3.cppVector3.hppVector4.cppVector4.hpp
Common.cppCommon.hppConfig.hppCore.cppCore.hppEntity.cppEntity.hppEntity
Blip.cppBlip.hppCheckpoint.cppCheckpoint.hppKeybind.cppKeybind.hppObject.cppObject.hppPickup.cppPickup.hppPlayer.cppPlayer.hppSphere.cppSphere.hppSprite.cppSprite.hppTextdraw.cppTextdraw.hppVehicle.cppVehicle.hpp
Iterators.cppIterators.hppLibrary
CFG.cppCFG.hppDatetime.cppDatetime.hppFileIO.cppFileIO.hppFormat.cppFormat.hppINI.cppINI.hppJSON.cppJSON.hppLongInt.cppLongInt.hppMath.cppMath.hppNumeric.cppNumeric.hppShared.cppShared.hppString.cppString.hppSysPath.cppSysPath.hppSystem.cppSystem.hppTimer.cppTimer.hppUtils.cppUtils.hppXML.cppXML.hpp
Logger.cppLogger.hppMisc
Automobile.cppAutomobile.hppConstants.cppConstants.hppFunctions.cppFunctions.hppModel.cppModel.hppPlayerImmunity.cppPlayerImmunity.hppRadio.cppRadio.hppShared.cppShared.hppSkin.cppSkin.hppSound.cppSound.hppVehicleImmunity.cppVehicleImmunity.hppWastedSettings.cppWastedSettings.hppWeapon.cppWeapon.hppWorldBounds.cppWorldBounds.hpp
Register.cppRegister.hppSignal.hppUtility
29
source/Entity/Object.cpp
Normal file
29
source/Entity/Object.cpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#include "Entity/Object.hpp"
|
||||
#include "Register.hpp"
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
namespace SqMod {
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
bool Register_CObject(HSQUIRRELVM vm)
|
||||
{
|
||||
if (!Register_Reference< CObject >(vm, _SC("BaseObject")))
|
||||
{
|
||||
LogDbg("Unable to register the base class <BaseObject> for <CObject> type");
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
LogDbg("Beginning registration of <CObject> type");
|
||||
|
||||
Sqrat::RootTable(vm).Bind(_SC("CObject"), Sqrat::DerivedClass< CObject, Reference< CObject > >(vm, _SC("CObject"))
|
||||
.Ctor()
|
||||
.Ctor< SQInt32 >()
|
||||
);
|
||||
|
||||
LogDbg("Registration of <CObject> type was successful");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
} // Namespace:: SqMod
|
Reference in New Issue
Block a user