public Analyzer GetAnalyzer(string Name) { PacketsContainer Container = GetPackets(Name); if (Container != null) { return(Container.Analyzer); } return(null); }
// 0 = White // 1 = Grey // 2 = Green // 3 = Red public void AddPacket(PacketInfo Packet) { Packets.Add(Packet); PacketsContainer TempPackets = null; if (!PacketsAnalyze.TryGetValue(Packet.Opcode, out TempPackets)) { TempPackets = new PacketsContainer(); TempPackets.File = this; PacketsAnalyze.Add(Packet.Opcode, TempPackets); TempPackets.Opcode = Packet.Opcode; TempPackets.OpcodeName = Packet.OpcodeName; } TempPackets.Packets.Add(Packet); }
public virtual void Init(PacketsContainer Container) { this.Container = Container; }