internal void OnIncomingPacket(int playerid, int packetid, int bs)
 {
     IncomingPacket?.Invoke(this, new PacketRpcEventArgs(packetid, playerid, bs));
     if (LoggingIncomingPacket)
     {
         Console.WriteLine($"[SampSharp.RakNet] Hooking Incoming Packet {playerid}, {packetid}, {bs}");
     }
 }
Beispiel #2
0
 /// <summary>
 /// Raises an event when a new packet has arrived.
 /// </summary>
 /// <param name="e">The packet data.</param>
 protected virtual void OnIncomingPacket(PacketEventArgs e)
 {
     //Debug.WriteLine("OnIncomingPacket");
     IncomingPacket?.Invoke(this, e);
 }