예제 #1
0
파일: WorldSpace.cs 프로젝트: 7Kronos/linda
        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);
        }