Пример #1
0
 public static void ReadEntityTeleport(TestClient client, PacketReader reader)
 {
     EntityTeleportPacket et = new EntityTeleportPacket();
     et.Read(reader);
 }
Пример #2
0
 private void OnEntityTeleport(EntityTeleportPacket p)
 {
     if (EntityTeleport != null) EntityTeleport.Invoke(this, new PacketEventArgs<EntityTeleportPacket>(p));
 }
Пример #3
0
 public void UpdatePosition()
 {
     this.Position = new AbsWorldCoords(this.Position.ToVector() + Velocity);
     EntityTeleportPacket et = new EntityTeleportPacket
     {
         EntityId = this.EntityId,
         X = this.Position.X,
         Y = this.Position.Y,
         Z = this.Position.Z,
         Yaw = this.PackedYaw,
         Pitch = this.PackedPitch
     };
     World.Server.SendPacketToNearbyPlayers(World,
                                            UniversalCoords.FromAbsWorld(Position.X, Position.Y, Position.Z),
                                            et);
 }