Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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);
        }