コード例 #1
0
        public override void Merge(UndoRedoAction action)
        {
            var oveEventAction = action as MoveEventAction;

            if (oveEventAction == null)
            {
                return;
            }
            m_trackDelta    += oveEventAction.m_trackDelta;
            m_positionDelta += oveEventAction.m_positionDelta;
        }
コード例 #2
0
        public override void Merge(UndoRedoAction action)
        {
            SetSoundAction setSoundAction = (action as SetSoundAction);

            if (null == setSoundAction)
            {
                return;
            }

            m_nextInstrumentData       =
                m_eventData.Instrument =
                    setSoundAction.m_nextInstrumentData;
        }
コード例 #3
0
 public override bool CanMerge(UndoRedoAction action)
 {
     return(m_instrumentData.Name == m_newInstrumentName);
 }
コード例 #4
0
 private bool AreItemsTheSame(UndoRedoAction action)
 {
     return((action as SetSoundAction)?.m_eventData == m_eventData);
 }
コード例 #5
0
 public override bool CanMerge(UndoRedoAction action)
 {
     return(action is SetSoundAction && AreItemsTheSame(action));;
 }
コード例 #6
0
 private bool SameItems(UndoRedoAction action)
 {
     return(action is MoveEventAction && AreListsEqual((action as MoveEventAction).m_eventsList, m_eventsList));
 }
コード例 #7
0
 public override bool CanMerge(UndoRedoAction action)
 {
     return(SameItems(action));
 }
コード例 #8
0
 public override void Merge(UndoRedoAction action)
 {
 }
コード例 #9
0
 public override bool CanMerge(UndoRedoAction action)
 {
     return(m_trackData.TrackName == m_newTrackName);
 }