Esempio n. 1
0
 public static void HandlePacketPlayer(Client client, PlayerPacket packet)
 {
     client.Owner.Ready = true;
     client.OnGround = packet.OnGround;
     client.Owner.UpdateEntities();
 }
Esempio n. 2
0
 private void OnPlayer(PlayerPacket p)
 {
     if (Player != null) Player.Invoke(this, new PacketEventArgs<PlayerPacket>(p));
 }
Esempio n. 3
0
        public static void ReadPlayer(Client client, PacketReader reader)
        {
            PlayerPacket pp = new PlayerPacket();
            pp.Read(reader);

            if (!reader.Failed)
                Client.HandlePacketPlayer(client, pp);
        }