Esempio n. 1
0
        public void PacketFromProxy(ProtobufOriginPacket packet)
        {
#if DEBUG
            FromProxy.Add(packet);
#endif

            SendPacket((P3DPacket) packet);
        }
Esempio n. 2
0
        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;
            }
        }
Esempio n. 3
0
 public void SendPacketToOrigin(ProtobufOriginPacket packet)
 {
     OriginPlayer.PacketFromProxy(packet);
 }