static int Loops(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); ToLua_DG_Tweening_Tween obj = (ToLua_DG_Tweening_Tween)ToLua.CheckObject(L, 1, typeof(ToLua_DG_Tweening_Tween)); int o = obj.Loops(); LuaDLL.lua_pushinteger(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }