コード例 #1
0
        public Analyzer GetAnalyzer(string Name)
        {
            PacketsContainer Container = GetPackets(Name);

            if (Container != null)
            {
                return(Container.Analyzer);
            }

            return(null);
        }
コード例 #2
0
        // 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);
        }
コード例 #3
0
 public virtual void Init(PacketsContainer Container)
 {
     this.Container = Container;
 }