#include <LuaGate.hpp>
◆ State() [1/3]
◆ State() [2/3]
| LuaG::State::State |
( |
lua_State * |
L, |
|
|
bool |
shouldClose = false |
|
) |
| |
◆ ~State()
◆ State() [3/3]
| LuaG::State::State |
( |
const State & |
| ) |
|
|
delete |
◆ callFunction()
| bool LuaG::State::callFunction |
( |
int |
nbParams, |
|
|
int |
nbReturns |
|
) |
| |
◆ dofile()
| void LuaG::State::dofile |
( |
std::string |
filepath | ) |
|
Execute a file in this state.
◆ dostring()
| void LuaG::State::dostring |
( |
std::string |
str | ) |
|
Execute a string in this state.
◆ getBool()
| bool LuaG::State::getBool |
( |
int |
index | ) |
|
Get bool at index in the stack.
◆ getFirstUpValueIdx()
| int LuaG::State::getFirstUpValueIdx |
( |
void |
| ) |
|
◆ getGlobal()
| void LuaG::State::getGlobal |
( |
std::string |
str | ) |
|
Get global value on top of the stack.
◆ getNumber()
| float LuaG::State::getNumber |
( |
int |
index | ) |
|
Get Number at index in the stack.
◆ getPointer()
| const void * LuaG::State::getPointer |
( |
int |
index | ) |
|
Get Number at index in the stack.
◆ getReturnBool()
| bool LuaG::State::getReturnBool |
( |
void |
| ) |
|
◆ getReturnNumber()
| float LuaG::State::getReturnNumber |
( |
void |
| ) |
|
◆ getState()
| lua_State * LuaG::State::getState |
( |
void |
| ) |
|
◆ newTable()
| void LuaG::State::newTable |
( |
void |
| ) |
|
Creates a new table at the top of the stack.
◆ operator=()
◆ popLast()
| void LuaG::State::popLast |
( |
void |
| ) |
|
Pop last value on the stack.
◆ push() [1/2]
| void LuaG::State::push |
( |
float |
val | ) |
|
push a number onto the lua stack
◆ push() [2/2]
| void LuaG::State::push |
( |
std::string |
str | ) |
|
push a string onto the lua stack
◆ registerClosure()
| void LuaG::State::registerClosure |
( |
void * |
ptr, |
|
|
std::string |
funcName, |
|
|
lua_CFunction |
fn |
|
) |
| |
◆ setTable()
| void LuaG::State::setTable |
( |
void |
| ) |
|
◆ _shouldClose
| bool LuaG::State::_shouldClose |
|
private |
Should close the state at destruction.
◆ _state
| lua_State* LuaG::State::_state |
|
private |
The documentation for this class was generated from the following files: