1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2026-07-09 01:57:09 +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
View File
@@ -0,0 +1,29 @@
#include "Entity/Keybind.hpp"
#include "Register.hpp"
// ------------------------------------------------------------------------------------------------
namespace SqMod {
// ------------------------------------------------------------------------------------------------
bool Register_CKeybind(HSQUIRRELVM vm)
{
if (!Register_Reference< CKeybind >(vm, _SC("BaseKeybind")))
{
LogDbg("Unable to register the base class <BaseKeybind> for <CKeybind> type");
return false;
}
LogDbg("Beginning registration of <CKeybind> type");
Sqrat::RootTable(vm).Bind(_SC("CKeybind"), Sqrat::DerivedClass< CKeybind, Reference< CKeybind > >(vm, _SC("CKeybind"))
.Ctor()
.Ctor< SQInt32 >()
);
LogDbg("Registration of <CKeybind> type was successful");
return true;
}
} // Namespace:: SqMod