sprint 1-alpha
Public Member Functions
sprint::lua_script Class Reference

#include <lua_script.h>

List of all members.

Public Member Functions

 lua_script (int feature=0)
lua_State * operator* (void) const
 return the lua_State inner object
bool bind (const char *fun_name, lua_CFunction fun)
 associate a fun_name with a function
bool bind (const char *lib_name, const luaL_Reg *)
bool load (const char *filename)
 load a lua script
bool import (const char *script)
 add an additional script on an alredy open script
bool run ()
 Call GLOBAL script function.
bool call (const char *fun_name)
 call a function
bool call (const char *fun_name, lua_Number param1)
 call a function with 1 parameters
bool call (const char *fun_name, lua_Number param1, lua_Number param2)
 call a function with 2 parameters

Detailed Description

a lua script object


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines