static int Init(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Framework.GameScriptManager obj = (Framework.GameScriptManager)ToLua.CheckObject <Framework.GameScriptManager>(L, 1);
         obj.Init();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int AddSearchPath(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Framework.GameScriptManager obj = (Framework.GameScriptManager)ToLua.CheckObject <Framework.GameScriptManager>(L, 1);
         string arg0 = ToLua.CheckString(L, 2);
         obj.AddSearchPath(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int CallVoidFunc(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Framework.GameScriptManager obj = (Framework.GameScriptManager)ToLua.CheckObject <Framework.GameScriptManager>(L, 1);
         string arg0 = ToLua.CheckString(L, 2);
         bool   o    = obj.CallVoidFunc(arg0);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int DoFile(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Framework.GameScriptManager obj = (Framework.GameScriptManager)ToLua.CheckObject <Framework.GameScriptManager>(L, 1);
         string arg0             = ToLua.CheckString(L, 2);
         LuaInterface.LuaTable o = obj.DoFile(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int ExecuteString(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Framework.GameScriptManager obj = (Framework.GameScriptManager)ToLua.CheckObject <Framework.GameScriptManager>(L, 1);
         string arg0 = ToLua.CheckString(L, 2);
         object o    = obj.ExecuteString(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int SetUserData(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         Framework.GameScriptManager obj = (Framework.GameScriptManager)ToLua.CheckObject <Framework.GameScriptManager>(L, 1);
         string arg0 = ToLua.CheckString(L, 2);
         object arg1 = ToLua.ToVarObject(L, 3);
         obj.SetUserData(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int GetTableField(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         Framework.GameScriptManager obj = (Framework.GameScriptManager)ToLua.CheckObject <Framework.GameScriptManager>(L, 1);
         LuaTable arg0 = ToLua.CheckLuaTable(L, 2);
         string   arg1 = ToLua.CheckString(L, 3);
         object   o    = obj.GetTableField(arg0, arg1);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }