public static void ReadEntityTeleport(TestClient client, PacketReader reader) { EntityTeleportPacket et = new EntityTeleportPacket(); et.Read(reader); }
private void OnEntityTeleport(EntityTeleportPacket p) { if (EntityTeleport != null) EntityTeleport.Invoke(this, new PacketEventArgs<EntityTeleportPacket>(p)); }
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); }