// *** OPERATORS *** /// <summary> /// Combines two LayerMoves into a LayerMoveCollection /// </summary> public static LayerMoveCollection operator &(LayerMove first, LayerMove second) { LayerMoveCollection moves = new LayerMoveCollection(); moves.Add(first); moves.Add(second); return moves; }
/// <summary> /// Executes the given move (rotation) /// </summary> /// <param name="move">Defines the move to be executed</param> public void RotateLayer(IMove move) { if (move.MultipleLayers) { LayerMoveCollection moves = (LayerMoveCollection)move; foreach (LayerMove m in moves) { RotateLayer(m); } } else { RotateLayer((LayerMove)move); } }
// *** OPERATORS *** /// <summary> /// Combines two LayerMoves into a LayerMoveCollection /// </summary> public static LayerMoveCollection operator &(LayerMove first, LayerMove second) { var moves = new LayerMoveCollection { first, second }; return moves; }