LuaYard/LuaYard.cpp

20 lines
329 B
C++
Raw Normal View History

2019-08-06 20:36:04 +08:00
#include <iostream>
#include <string>
#include "LuaEngine.h"
using namespace std;
int main()
{
do {
LuaVM L;
InitEngine(L);
cout << "<ENGINE> Started." << endl;
if (luaL_dofile(L, "code/game.lua"))
{
cout << lua_tostring(L, -1) << endl;
}
cout << "<ENGINE> Stopped." << endl;
} while (0);
StopEngine();
2019-08-06 20:36:04 +08:00
}