public static void Jump(SyncSession session, MovementJumpRequest request) { session.Character.Place.Position = request.Position; session.Character.Place.Rotation = request.Rotation; session.Channel !.BroadcastAsync(request); }
public void BroadcastAsync(MovementJumpRequest request) => Dimension.BroadcastAsync(ClientOpcode.MovementJump, (PacketWriter writer) => { writer.Write(request.Character); writer.Write(request.Unknown1); writer.Write(request.Unknown2); writer.Write(request.Location); writer.Write(request.Unknown3); writer.WriteVector3(request.Position); writer.Write(request.Rotation); writer.WriteVector2(request.InterpolatedPosition); writer.Write(request.Unknown5); writer.Write(request.Unknown6); });