示例#1
0
        public static DraggableShip From(Ship ship)
        {
            var draggableShip = new DraggableShip(ship.Length)
                                    {
                                        X = ship.X,
                                        Y = ship.Y,
                                        Orientation = ship.Orientation,
                                        Source = ship
                                    };

            return draggableShip;
        }
示例#2
0
        public static DraggableShip From(Ship ship)
        {
            var draggableShip = new DraggableShip(ship.Length)
            {
                X           = ship.X,
                Y           = ship.Y,
                Orientation = ship.Orientation,
                Source      = ship
            };

            return(draggableShip);
        }