static int _CreateCFramework_BaseModule(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 4) { string arg0 = ToLua.CheckString(L, 1); string[] arg1 = ToLua.CheckStringArray(L, 2); bool arg2 = LuaDLL.luaL_checkboolean(L, 3); UnityEngine.Transform arg3 = (UnityEngine.Transform)ToLua.CheckObject <UnityEngine.Transform>(L, 4); CFramework.BaseModule obj = new CFramework.BaseModule(arg0, arg1, arg2, arg3); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: CFramework.BaseModule.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Dispose(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); CFramework.BaseModule obj = (CFramework.BaseModule)ToLua.CheckObject <CFramework.BaseModule>(L, 1); obj.Dispose(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetModule(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); CFramework.BaseScene obj = (CFramework.BaseScene)ToLua.CheckObject <CFramework.BaseScene>(L, 1); string arg0 = ToLua.CheckString(L, 2); CFramework.BaseModule o = obj.GetModule(arg0); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }