![]()  | 
  
  
  
    AppEasy Core SDK
    1.5.0
    
   Cross platform mobile and desktop app and game development SDK - The easy way to make apps 
   | 
  
  
  
 
LUA script engine. More...
#include <CzScriptLua.h>
  
 Public Member Functions | |
| lua_State * | getState () | 
| CzScriptEngineLua () | |
| virtual | ~CzScriptEngineLua () | 
| int | Init (CzScene *scene) | 
| void | Release () | 
| int | LoadScript (const char *script, int script_len, const char *name) | 
| int | CallFunction (IzXomlResource *object, CzString *function_name, CzString *param1, CzString *param2, CzString *param3) | 
| CzXomlProperty | getVariable (CzString *var_name) | 
| int | CallFunctionRef (int function_ref, CzString *param1, CzString *param2, CzString *param3, CzString *param4) | 
| int | CallFunctionRefWithObject (void *object, int function_ref, CzString *param1, CzString *param2, CzString *param3, CzString *param4) | 
| CzString | getType () | 
Static Public Member Functions | |
| static void | DisplayError (lua_State *lua, const char *message) | 
| static void | DisplayError (lua_State *lua, const char *message, const char *data) | 
Protected Attributes | |
| lua_State * | Lua | 
| The lua engines state.   | |
LUA script engine.
| CzScriptEngineLua::CzScriptEngineLua | ( | ) |  [inline] | 
        
| virtual CzScriptEngineLua::~CzScriptEngineLua | ( | ) |  [inline, virtual] | 
        
| int CzScriptEngineLua::CallFunction | ( | IzXomlResource * | object, | 
| CzString * | function_name, | ||
| CzString * | param1, | ||
| CzString * | param2, | ||
| CzString * | param3 | ||
| ) |  [virtual] | 
        
Implements IzScriptEngine.
| int CzScriptEngineLua::CallFunctionRef | ( | int | function_ref, | 
| CzString * | param1, | ||
| CzString * | param2, | ||
| CzString * | param3, | ||
| CzString * | param4 | ||
| ) |  [virtual] | 
        
Implements IzScriptEngine.
| int CzScriptEngineLua::CallFunctionRefWithObject | ( | void * | object, | 
| int | function_ref, | ||
| CzString * | param1, | ||
| CzString * | param2, | ||
| CzString * | param3, | ||
| CzString * | param4 | ||
| ) |  [virtual] | 
        
Implements IzScriptEngine.
| void CzScriptEngineLua::DisplayError | ( | lua_State * | lua, | 
| const char * | message | ||
| ) |  [static] | 
        
| void CzScriptEngineLua::DisplayError | ( | lua_State * | lua, | 
| const char * | message, | ||
| const char * | data | ||
| ) |  [static] | 
        
| lua_State* CzScriptEngineLua::getState | ( | ) |  [inline] | 
        
| CzString CzScriptEngineLua::getType | ( | ) |  [inline, virtual] | 
        
Implements IzScriptEngine.
| CzXomlProperty CzScriptEngineLua::getVariable | ( | CzString * | var_name | ) |  [virtual] | 
        
Implements IzScriptEngine.
| int CzScriptEngineLua::Init | ( | CzScene * | scene | ) |  [virtual] | 
        
Implements IzScriptEngine.
| int CzScriptEngineLua::LoadScript | ( | const char * | script, | 
| int | script_len, | ||
| const char * | name | ||
| ) |  [virtual] | 
        
Implements IzScriptEngine.
| void CzScriptEngineLua::Release | ( | ) |  [virtual] | 
        
Implements IzScriptEngine.
lua_State* CzScriptEngineLua::Lua [protected] | 
        
The lua engines state.