public Lib.Battleship ToBattleship()
        {
            var battleship = new Lib.Battleship(BoardId, StartAt, Orientation, Length);

            return(battleship);
        }
示例#2
0
 public ShipViewModel(Lib.Battleship ship)
 {
     BoardId = ship.BoardId;
     Id      = ship.Id;
 }