public WorldSpace AddCell(WorldSpaceCell cell) { if (GetAt(cell.X, cell.Y, cell.Z) != null) throw new InvalidOperationException("There is already a cell at this location."); _cells.Add(cell); return this; }
public WorldSpace AddCell(WorldSpaceCell cell) { if (GetAt(cell.X, cell.Y, cell.Z) != null) { throw new InvalidOperationException("There is already a cell at this location."); } _cells.Add(cell); return(this); }