public void PacketFromProxy(ProtobufOriginPacket packet) { #if DEBUG FromProxy.Add(packet); #endif SendPacket((P3DPacket) packet); }
private void HandlePacket(ProtobufOriginPacket packet) { switch ((GamePacketTypes) (int) packet.ID) { case GamePacketTypes.JoiningGameResponse: HandleJoiningGameResponse((JoiningGameResponsePacket) packet); break; case GamePacketTypes.EncryptionRequest: HandleEncryptionRequest((EncryptionRequestPacket) packet); break; default: _proxy.SendPacketToOrigin(packet); #if DEBUG ToOrigin.Add(packet); #endif break; } }
public void SendPacketToOrigin(ProtobufOriginPacket packet) { OriginPlayer.PacketFromProxy(packet); }