public override void Undo(ILogger logger) { foreach (var pair in Dead) { SourceArmy.Insert(pair.Key, pair.Value); } }
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); } }