Battle Talent  V11
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
CrossLink.XLuaMgr Class Reference

Used to manage lua script resources need to be located under the path of "LuaScript/" More...

Public Member Functions

delegate LuaTable RequireFunc (string script)
 
delegate LuaTable CreateFunc ()
 
LuaTable RequireModule (string script)
 
LuaFunction TriggerEvent ()
 
LuaEnv GetLuaState ()
 
bool IsInit ()
 
void Init ()
 
object[] DoString (string code)
 
object[] DoFile (string file)
 
void Dispose ()
 

Static Public Member Functions

static void ReloadScript (string script)
 
static void TickVM ()
 

Static Public Attributes

static XLuaMgr Instance = new XLuaMgr()
 
const string LUA_SCRIPT_PATH = "LuaScript/"
 
const string LUA_EXT = ".txt"
 

Detailed Description

Used to manage lua script resources need to be located under the path of "LuaScript/"