complete prototype for PartyFinderPayload

This commit is contained in:
shakdar 2023-02-11 18:54:33 -07:00
parent d3c44080b5
commit 7fa1a9b5f0
2 changed files with 20 additions and 0 deletions

View file

@ -75,6 +75,12 @@ namespace Dalamud.Game.Text.SeStringHandling.Payloads
/// <inheritdoc/>
public override PayloadType Type => PayloadType.PartyFinder;
/// <inheritdoc/>
public override string ToString()
{
return $"{this.Type} - ListingId: {this.ListingId}, PartyFinderLinkType: {this.LinkType}";
}
/// <inheritdoc/>
protected override void DecodeImpl(BinaryReader reader, long endOfStream)
{

View file

@ -186,6 +186,20 @@ public class SeStringBuilder
/// <returns>The current builder.</returns>
public SeStringBuilder AddStatusLink(uint statusId) => this.Add(new StatusPayload(statusId));
/// <summary>
/// Add a link to the party finder search conditions to the builder.
/// </summary>
/// <returns>The current builder.</returns>
public SeStringBuilder AddPartyFinderSearchConditionsLink() => this.Add(new PartyFinderPayload());
/// <summary>
/// Add a party finder listing link to the builder.
/// </summary>
/// <param name="id">The listing ID of the party finder listing.</param>
/// <param name="isCrossWorld">Whether the listing is limited to the recruiting world.</param>
/// <returns>The current builder.</returns>
public SeStringBuilder AddPartyFinderLink(uint id, bool isCrossWorld = false) => this.Add(new PartyFinderPayload(id, isCrossWorld ? PartyFinderPayload.PartyFinderLinkType.NotSpecified : PartyFinderPayload.PartyFinderLinkType.LimitedToHomeWorld));
/// <summary>
/// Add a payload to the builder.
/// </summary>