cs-codex-dist-tests/ProjectPlugins/CodexPlugin/OverwatchSupport/LineConverters/PeerDroppedLineConverter.cs

21 lines
537 B
C#
Raw Normal View History

namespace CodexPlugin.OverwatchSupport.LineConverters
{
public class PeerDroppedLineConverter : ILineConverter
{
public string Interest => "Dropping peer";
public void Process(CodexLogLine line, Action<Action<OverwatchCodexEvent>> addEvent)
{
var peerId = line.Attributes["peer"];
addEvent(e =>
{
e.PeerDropped = new PeerDroppedEvent
{
DroppedPeerId = peerId
};
});
}
}
}