Exemplo n.º 1
0
 public override void Undo(ILogger logger)
 {
     foreach (var pair in Dead)
     {
         SourceArmy.Insert(pair.Key, pair.Value);
     }
 }
Exemplo n.º 2
0
 public override void Execute(ILogger logger)
 {
     logger?.Log($"Collecting {Dead.Count()} deads from {SourceArmy.Name}");
     foreach (var pair in Dead.Reverse())
     {
         SourceArmy.RemoveAt(pair.Key);
     }
 }