Пример #1
0
 private void CreateRope()
 {
     Rope rope = new Rope(Board, X, Y, Y, false, Board.SelectedLayerIndex, true);
     Board.BoardItems.Ropes.Add(rope);
     BindItem(rope.FirstAnchor, new Xna.Point());
     BindItem(rope.SecondAnchor, new Xna.Point());
 }
Пример #2
0
 public static UndoRedoAction RopeAdded(Rope rope)
 {
     return(new UndoRedoAction(null, UndoRedoType.RopeAdded, rope, null));
 }
Пример #3
0
 public RopeAnchor(Board board, int x, int y, Rope parentRope, bool beforeAdding)
     : base(board, x, y, beforeAdding)
 {
     this.parentRope = parentRope;
 }
Пример #4
0
 public static UndoRedoAction RopeRemoved(Rope rope)
 {
     return new UndoRedoAction(null, UndoRedoType.RopeRemoved, rope, null);
 }