static int AddTimer(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 4) { FirClient.Component.CTimer obj = (FirClient.Component.CTimer)ToLua.CheckObject <FirClient.Component.CTimer>(L, 1); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); float arg1 = (float)LuaDLL.luaL_checknumber(L, 3); System.Action <object> arg2 = (System.Action <object>)ToLua.CheckDelegate <System.Action <object> >(L, 4); FirClient.Component.TimerInfo o = obj.AddTimer(arg0, arg1, arg2); ToLua.PushObject(L, o); return(1); } else if (count == 5) { FirClient.Component.CTimer obj = (FirClient.Component.CTimer)ToLua.CheckObject <FirClient.Component.CTimer>(L, 1); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); float arg1 = (float)LuaDLL.luaL_checknumber(L, 3); System.Action <object> arg2 = (System.Action <object>)ToLua.CheckDelegate <System.Action <object> >(L, 4); object arg3 = ToLua.ToVarObject(L, 5); FirClient.Component.TimerInfo o = obj.AddTimer(arg0, arg1, arg2, arg3); ToLua.PushObject(L, o); return(1); } else if (count == 6) { FirClient.Component.CTimer obj = (FirClient.Component.CTimer)ToLua.CheckObject <FirClient.Component.CTimer>(L, 1); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); float arg1 = (float)LuaDLL.luaL_checknumber(L, 3); System.Action <object> arg2 = (System.Action <object>)ToLua.CheckDelegate <System.Action <object> >(L, 4); object arg3 = ToLua.ToVarObject(L, 5); bool arg4 = LuaDLL.luaL_checkboolean(L, 6); FirClient.Component.TimerInfo o = obj.AddTimer(arg0, arg1, arg2, arg3, arg4); ToLua.PushObject(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: FirClient.Component.CTimer.AddTimer")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int RemoveTimer(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); FirClient.Component.CTimer obj = (FirClient.Component.CTimer)ToLua.CheckObject <FirClient.Component.CTimer>(L, 1); FirClient.Component.TimerInfo arg0 = (FirClient.Component.TimerInfo)ToLua.CheckObject <FirClient.Component.TimerInfo>(L, 2); obj.RemoveTimer(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int AddLuaTimer(IntPtr L) { try { ToLua.CheckArgsCount(L, 7); FirClient.Component.CTimer obj = (FirClient.Component.CTimer)ToLua.CheckObject <FirClient.Component.CTimer>(L, 1); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); float arg1 = (float)LuaDLL.luaL_checknumber(L, 3); LuaTable arg2 = ToLua.CheckLuaTable(L, 4); LuaFunction arg3 = ToLua.CheckLuaFunction(L, 5); object arg4 = ToLua.ToVarObject(L, 6); bool arg5 = LuaDLL.luaL_checkboolean(L, 7); FirClient.Component.TimerInfo o = obj.AddLuaTimer(arg0, arg1, arg2, arg3, arg4, arg5); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }