2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-07 04:45:52 +00:00
metaforce/hecl/lib/Database/ASEngine.cpp
2015-07-15 16:03:38 -10:00

22 lines
359 B
C++

#include "HECL/Database.hpp"
namespace HECL
{
namespace Database
{
/* Centralized AngelScript engine */
AngelScript::asIScriptEngine* asENGINE = nullptr;
static bool InitEntered = false;
void InitASEngine()
{
if (InitEntered)
return;
InitEntered = true;
assert(asENGINE = AngelScript::asCreateScriptEngine(ANGELSCRIPT_VERSION));
}
}
}