mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-11 22:24:00 +00:00
added AngelScript; work on extractor
This commit is contained in:
24
hecl/lib/Database/ASInit.cpp
Normal file
24
hecl/lib/Database/ASInit.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#include "HECL/Database.hpp"
|
||||
|
||||
namespace HECL
|
||||
{
|
||||
namespace Database
|
||||
{
|
||||
|
||||
static std::string StringFactory(unsigned int byteLength, const char *s)
|
||||
{
|
||||
return std::string(s, byteLength);
|
||||
}
|
||||
|
||||
ASStringType asSTRINGTYPE;
|
||||
ASStringType::ASStringType() : ASType<std::string>("", "string")
|
||||
{
|
||||
assert(asENGINE->RegisterStringFactory("string",
|
||||
AngelScript::asFUNCTION(StringFactory),
|
||||
AngelScript::asCALL_CDECL) >= 0);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user