28 lines
364 B
C++
Raw Normal View History

2020-04-20 23:02:23 -07:00
#include <iostream>
extern "C"
{
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
}
#include "functions.hpp"
#include "LuaPlayer.hpp"
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);
}