mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-01 17:55:48 +00:00
update map info
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
//
|
||||
// Created by Louis Auzuret on 10/06/21
|
||||
//
|
||||
|
||||
#include "LuaGate.hpp"
|
||||
|
||||
namespace LuaG
|
||||
{
|
||||
State::State()
|
||||
: _state(luaL_newstate())
|
||||
{
|
||||
luaL_openlibs(_state);
|
||||
}
|
||||
|
||||
State::~State()
|
||||
{
|
||||
lua_close(_state);
|
||||
}
|
||||
|
||||
LuaState *State::getState(void)
|
||||
{
|
||||
return _state;
|
||||
}
|
||||
|
||||
void State::dofile(std::string filepath)
|
||||
{
|
||||
luaL_dofile(_state, filepath.c_str());
|
||||
}
|
||||
|
||||
void State::dostring(std::string str)
|
||||
{
|
||||
luaL_dostring(_state, str.c_str());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user