2020-04-20 23:02:23 -07:00
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#include "lua.h"
|
|
|
|
#include "lualib.h"
|
|
|
|
#include "lauxlib.h"
|
|
|
|
}
|
|
|
|
|
|
|
|
#include "functions.hpp"
|
2020-04-28 18:37:19 -07:00
|
|
|
#include "LuaWebSocket.h"
|
2020-04-20 23:02:23 -07:00
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
lua_State* L = luaL_newstate();
|
|
|
|
luaL_openlibs(L);
|
|
|
|
|
|
|
|
// Functions
|
|
|
|
lua_register(L, "info", lua_info);
|
|
|
|
|
|
|
|
// Objets
|
|
|
|
luaopen_Player(L);
|
|
|
|
|
|
|
|
luaL_dofile(L, "ia.lua");
|
|
|
|
lua_close(L);
|
|
|
|
}
|