static int AddTimer(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 4) { CFramework.TimerManager obj = (CFramework.TimerManager)ToLua.CheckObject <CFramework.TimerManager>(L, 1); string arg0 = ToLua.CheckString(L, 2); float arg1 = (float)LuaDLL.luaL_checknumber(L, 3); System.Action arg2 = (System.Action)ToLua.CheckDelegate <System.Action>(L, 4); obj.AddTimer(arg0, arg1, arg2); return(0); } else if (count == 5) { CFramework.TimerManager obj = (CFramework.TimerManager)ToLua.CheckObject <CFramework.TimerManager>(L, 1); string arg0 = ToLua.CheckString(L, 2); float arg1 = (float)LuaDLL.luaL_checknumber(L, 3); System.Action arg2 = (System.Action)ToLua.CheckDelegate <System.Action>(L, 4); bool arg3 = LuaDLL.luaL_checkboolean(L, 5); obj.AddTimer(arg0, arg1, arg2, arg3); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: CFramework.TimerManager.AddTimer")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_Instance(IntPtr L) { try { CFramework.TimerManager arg0 = (CFramework.TimerManager)ToLua.CheckObject <CFramework.TimerManager>(L, 2); CFramework.BaseManager <CFramework.TimerManager> .Instance = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Init(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); CFramework.TimerManager obj = (CFramework.TimerManager)ToLua.CheckObject <CFramework.TimerManager>(L, 1); obj.Init(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int RemoveTimer(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); CFramework.TimerManager obj = (CFramework.TimerManager)ToLua.CheckObject <CFramework.TimerManager>(L, 1); string arg0 = ToLua.CheckString(L, 2); obj.RemoveTimer(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_time(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); CFramework.TimerManager obj = (CFramework.TimerManager)o; float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.time = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index time on a nil value")); } }
static int get_time(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); CFramework.TimerManager obj = (CFramework.TimerManager)o; float ret = obj.time; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index time on a nil value")); } }