using CodexPlugin; using CodexPlugin.OverwatchSupport; using OverwatchTranscript; namespace TranscriptAnalysis.Receivers { public class LogReplaceReceiver : BaseReceiver { public override string Name => "LogReplacer"; private readonly List seen = new List(); public override void Receive(ActivateEvent @event) { var peerId = GetPeerId(@event.Payload.NodeIdentity); var name = GetName(@event.Payload.NodeIdentity); if (!seen.Contains(peerId)) { seen.Add(peerId); log.AddStringReplace(peerId, name); log.AddStringReplace(CodexUtils.ToShortId(peerId), name); } } public override void Finish() { } } }