mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
complete prototype for PartyFinderPayload
This commit is contained in:
parent
d3c44080b5
commit
7fa1a9b5f0
2 changed files with 20 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue