Beispiel #1
0
        public static void HandlePacketPlayerPositionRotation(TestClient client, PlayerPositionRotationPacket ppr)
        {
            client.Position = new AbsWorldCoords(ppr.X, ppr.Y, ppr.Z);

            client.SendPacket(ppr);
            client.WaitInitialPositionRequest = false;
        }
Beispiel #2
0
 public static void HandlePacketHandshake(TestClient client, HandshakePacket hp)
 {
     client.SendPacket(new LoginRequestPacket {
         ProtocolOrEntityId = 19, Username = client.UserName
     });
 }
Beispiel #3
0
 public static void HandlePacketKeepAlive(TestClient client, KeepAlivePacket ka)
 {
     client.SendPacket(new KeepAlivePacket());
 }
Beispiel #4
0
        public static void HandlePacketPlayerPositionRotation(TestClient client, PlayerPositionRotationPacket ppr)
        {
            client.Position = new AbsWorldCoords(ppr.X, ppr.Y, ppr.Z);

            client.SendPacket(ppr);
            client.WaitInitialPositionRequest = false;
        }
Beispiel #5
0
 public static void HandlePacketKeepAlive(TestClient client, KeepAlivePacket ka)
 {
     client.SendPacket(new KeepAlivePacket());
 }
Beispiel #6
0
 public static void HandlePacketHandshake(TestClient client, HandshakePacket hp)
 {
     client.SendPacket(new LoginRequestPacket { ProtocolOrEntityId = 19, Username = client.UserName });
 }