Ejemplo n.º 1
0
 public void LogPacket(Packet p)
 {
     OnPacketReceived(new PacketReceivedEventArgs(p));
     if (p.Type == PacketType.ContainerOpen)
         Helpers.Debug.WriteLine("Container has been opened", ConsoleColor.Red);
     Helpers.Debug.WriteLine(string.Format("Lenght: {0} Packet: {1}", p.Length, p.Body.ToStringFast()), ConsoleColor.DarkBlue);
 }
Ejemplo n.º 2
0
 void Packets_PacketReceived(object sender, PacketReceivedEventArgs e)
 {
     lastRecievedPacket = e.Packet;         
 }
Ejemplo n.º 3
0
 public PacketReceivedEventArgs(Packet waypoint)
 {
     this._packet = waypoint;
 }