Пример #1
0
        private void RemoveVoxelMap(MyVoxelMap map)
        {
            map.Save          = true;
            map.RangeChanged -= m_voxelMap_RangeChangedDelegate;

            if (m_voxelMaps.ContainsKey(map))
            {
                var item = m_voxelMaps[map];
                m_sector.EnableItem(item, false);
                m_voxelMaps.Remove(map);
            }
            else
            {
                Debug.Fail("Voxel map was no longer tracked");
            }
        }