Exemple #1
0
        public ClientPacketSafe ProcessOnly(BaseClientPacketMock expected)
        {
            ClientPacketSafe result = ClientPacket.Instantiate((byte *)Socket, Socket->Data[0], expected.Length, expected.Dynamic);

            CoreEvents.OnPacketReceived((byte *)Socket, expected.PacketID, expected.Length, expected.Dynamic);
            return(result);
        }
Exemple #2
0
        public ClientPacketSafe ProcessAndCheck(BaseClientPacketMock expected)
        {
            ClientPacketSafe result = ProcessOnly(expected);

            expected.VerifyTransform(result);

            return(result);
        }
Exemple #3
0
 public void Enqueue(BaseClientPacketMock packet)
 {
     for (int i = 0; i < packet.Length; i++)
     {
         *((*Socket).Data + SocketDataLength + i) = packet.PacketData[i];
     }
     SocketDataLength += packet.Length;
 }