Esempio n. 1
0
 public void RestoreMemento(GoTMemento memento)
 {
     this.Characters.Clear();
     //
     // Makes deep copies of Character objects
     //
     foreach (var c in memento.Characters)
     {
         this.Characters.Add(new Character(c));
     }
 }
Esempio n. 2
0
 public void RestoreMemento(GoTMemento memento)
 {
     this.Characters.Clear();
     //
     // Makes deep copies of Character objects
     //
     foreach (var c in memento.Characters)
     {
         this.Characters.Add(new Character(c));
     }
 }