2019-08-06 20:36:04 +08:00
|
|
|
|
#include <iostream>
|
|
|
|
|
#include <string>
|
|
|
|
|
#include "LuaEngine.h"
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
int main()
|
|
|
|
|
{
|
2019-08-09 18:37:09 +08:00
|
|
|
|
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
|
|
|
|
}
|