예제 #1
0
        /// <summary>
        ///  Removes multiple object ID´s from ignore list.
        /// </summary>
        /// <param name="list"></param>
        public static void IgnoreRemove(List <uint> list)
        {
            if (HandleGarbage())
            {
                return;
            }

            foreach (var e in list)
            {
                Stealth.Client.IgnoreOff(e);
            }
#if DEBUG
            ScriptLogger.WriteLine(string.Format("Removing {0} Items From Cache", list.Count));
#endif
        }
예제 #2
0
        /// <summary>
        /// clears ignorelist.
        /// </summary>
        public static void ClearIgnoreList()
        {
            if (AutoGCMode)
            {
                if (GCCache == null)
                {
                    GCCache = new List <DateTime>();
                }

                if (GCCache.Count > 0)
                {
#if DEBUG
                    ScriptLogger.WriteLine(string.Format("Clearing {0} Items from Client Cache", GCCache.Count));
#endif
                }
            }

            Stealth.Client.IgnoreReset();
        }
예제 #3
0
        /// <summary>
        /// Adds multiple object ID´s to ignore list.
        /// </summary>
        /// <param name="list"></param>
        public static void Ignore(List <uint> list)
        {
            HandleGarbage();
            foreach (var e in list)
            {
                Stealth.Client.Ignore(e);
            }
#if DEBUG
            ScriptLogger.WriteLine(string.Format("Adding {0} Items to Client Cache", list.Count));
#endif
            if (AutoGCMode)
            {
                if (GCCache == null)
                {
                    GCCache = new List <DateTime>();
                }

                var now = DateTime.UtcNow;
#if DEBUG
                ScriptLogger.WriteLine(string.Format("{0} New Items Cached  => {1}", list.Count, now));
#endif
                GCCache.Add(now);
            }
        }