Пример #1
0
        public void DeleteGrid(GridId gridID)
        {
            var grid = _grids[gridID];
            var map  = (Map)grid.Map;

            grid.Dispose();
            map.RemoveGrid(grid);
            _grids.Remove(grid.Index);

            OnGridRemoved?.Invoke(gridID);
        }
Пример #2
0
 public void RaiseOnGridRemoved(MapId mapId, GridId gridId)
 {
     OnGridRemoved?.Invoke(mapId, gridId);
 }