|
virtual | ~LuaStack () |
|
lua_State * | getLuaState (void) |
| Method used to get a pointer to the lua_State that the script module is attached to. More...
|
|
virtual void | addSearchPath (const char *path) |
| Add a path to find lua files in. More...
|
|
virtual void | addLuaLoader (lua_CFunction func) |
| Add lua loader, now it is used on android. More...
|
|
virtual int | reload (const char *moduleFileName) |
| reload script code contained in the given string. More...
|
|
virtual void | removeScriptObjectByObject (Ref *object) |
| Remove Object from lua state. More...
|
|
virtual void | removeScriptHandler (int nHandler) |
| Remove Lua function reference. More...
|
|
virtual int | reallocateScriptHandler (int nHandler) |
| Remove Lua function reference. More...
|
|
virtual int | executeString (const char *codes) |
| Execute script code contained in the given string. More...
|
|
virtual int | executeScriptFile (const char *filename) |
| Execute a script file. More...
|
|
virtual int | executeGlobalFunction (const char *functionName) |
| Execute a scripted global function. More...
|
|
virtual void | clean (void) |
|
virtual void | pushInt (int intValue) |
|
virtual void | pushFloat (float floatValue) |
|
virtual void | pushLong (long longValue) |
|
virtual void | pushBoolean (bool boolValue) |
|
virtual void | pushString (const char *stringValue) |
|
virtual void | pushString (const char *stringValue, int length) |
|
virtual void | pushNil (void) |
|
virtual void | pushObject (Ref *objectValue, const char *typeName) |
|
virtual void | pushLuaValue (const LuaValue &value) |
|
virtual void | pushLuaValueDict (const LuaValueDict &dict) |
|
virtual void | pushLuaValueArray (const LuaValueArray &array) |
|
virtual bool | pushFunctionByHandler (int nHandler) |
|
virtual int | executeFunction (int numArgs) |
|
virtual int | executeFunctionByHandler (int nHandler, int numArgs) |
|
virtual int | executeFunctionReturnArray (int handler, int numArgs, int numResults, __Array &resultArray) |
|
virtual int | executeFunction (int handler, int numArgs, int numResults, const std::function< void(lua_State *, int)> &func) |
|
virtual bool | handleAssert (const char *msg) |
|
virtual void | setXXTEAKeyAndSign (const char *key, int keyLen, const char *sign, int signLen) |
|
virtual void | cleanupXXTEAKeyAndSign () |
|
int | luaLoadBuffer (lua_State *L, const char *chunk, int chunkSize, const char *chunkName) |
|
int | loadChunksFromZIP (const char *zipFilePath) |
|
int | luaLoadChunksFromZIP (lua_State *L) |
|
void | retain () |
| Retains the ownership. More...
|
|
void | release () |
| Releases the ownership immediately. More...
|
|
Ref * | autorelease () |
| Releases the ownership sometime soon automatically. More...
|
|
unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count. More...
|
|
virtual | ~Ref () |
| NA NA More...
|
|