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); }
public void RaiseOnGridRemoved(MapId mapId, GridId gridId) { OnGridRemoved?.Invoke(mapId, gridId); }