Пример #1
0
        public override void OnRedo(TextureBackup backup)
        {
            var toClear = recordedStrokesForUndoRedo.Count;

            recordedStrokes.AddRange(backup.strokeRecord);

            recordedStrokesForUndoRedo = backup.strokeRecord;
        }
Пример #2
0
        public override void OnUndo(TextureBackup backup)
        {
            var toClear = recordedStrokesForUndoRedo.Count;

            recordedStrokes.RemoveLast(toClear);

            recordedStrokesForUndoRedo = backup.strokeRecord;
        }
Пример #3
0
 public override void OnTextureBackup(TextureBackup backup)
 {
     backup.strokeRecord        = recordedStrokesForUndoRedo;
     recordedStrokesForUndoRedo = new List <string>();
 }
Пример #4
0
 public virtual void OnTextureBackup(TextureBackup backup)
 {
 }
Пример #5
0
 public virtual void OnRedo(TextureBackup backup)
 {
 }