예제 #1
0
        private void Grow()
        {
            var map = new BiomeDataManager(_allocSize << 1 | 1);

            foreach (var it in GetEnumerator())
            {
                map.Grow(it);
            }

            _count     = map._count;
            _allocSize = map._allocSize;
            _data      = map._data;
        }
예제 #2
0
        public void GC()
        {
            lock (this)
            {
                var map = new BiomeDataManager(_allocSize);

                foreach (var it in GetEnumerator())
                {
                    map.Grow(it);
                }

                _count     = map._count;
                _allocSize = map._allocSize;
                _data      = map._data;
            }
        }