Пример #1
0
        public SetupPiece AddPiece()
        {
            SetupPiece piece = new SetupPiece();

            pieces.Add(piece);
            return(piece);
        }
Пример #2
0
        public SetupPiece AddPiece(string pieceName, string owner, int x, int y)
        {
            SetupPiece piece = AddPiece();

            piece.PieceName = pieceName;
            piece.Owner     = owner;
            piece.PositionX = x;
            piece.PositionY = y;
            return(piece);
        }