示例#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;
        }
示例#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);
        }