Beispiel #1
0
        /// <summary>
        /// This allows items to be updated that aren't added to the map
        /// </summary>
        public void AddNonMapItem(IPartUpdatable item, long token)
        {
            if (item.IntervalSkips_MainThread != null)
            {
                _nonmapItemsMain.Add(Tuple.Create(item.IntervalSkips_MainThread.Value, item, token));
            }

            lock (_lockTypesAny)
            {
                if (item.IntervalSkips_AnyThread != null)
                {
                    _nonmapItemsAny = UtilityCore.ArrayAdd(_nonmapItemsAny, Tuple.Create(item.IntervalSkips_AnyThread.Value, item, token));
                }
            }
        }
        /// <summary>
        /// This allows items to be updated that aren't added to the map
        /// </summary>
        public void AddNonMapItem(IPartUpdatable item, long token)
        {
            if (item.IntervalSkips_MainThread != null)
            {
                _nonmapItemsMain.Add(Tuple.Create(item.IntervalSkips_MainThread.Value, item, token));
            }

            lock (_lockTypesAny)
            {
                if (item.IntervalSkips_AnyThread != null)
                {
                    _nonmapItemsAny = UtilityCore.ArrayAdd(_nonmapItemsAny, Tuple.Create(item.IntervalSkips_AnyThread.Value, item, token));
                }
            }
        }