1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-01-26 02:07:26 +00:00
Aquaria/Aquaria/Scriptable.cpp

21 lines
320 B
C++

#include "Scriptable.h"
#include "ScriptInterface.h"
#include "DSQ.h"
Scriptable::Scriptable() : script(0)
{
}
int Scriptable::pushLuaVars(lua_State *L)
{
return script ? script->pushLocalVars(L) : 0;
}
void Scriptable::closeScript()
{
if (script)
{
dsq->scriptInterface.closeScript(script);
script = 0;
}
}