Vixen
caa30e12
csharp
public sealed class MatchTicket

One entry in a queue: a party, what they are, and how long they have waited.

Read the guide page for this →

Remarks

⚠ A ticket is a group, never a player, and that is how doc 28's "a party is never split" becomes a property of the types rather than a rule somebody has to remember. A solo player is a party of one. Nothing downstream can separate two people who queued together, because nothing downstream is ever handed one of them.

Fields and properties (6)

  • public string Id

    What names it.

  • public ReadOnlySpan<PlayerId> Players

    Who is in it.

  • public int Size

    How many. A party is never split, so this is how many seats it takes.

  • public Rating Rating

    How good they are thought to be.

  • public float Enqueued

    When they joined.

  • public GameplayTagSet Tags

    What they are.

Methods (3)

  • public MatchTicket(string id, IReadOnlyList<PlayerId> players, Rating rating, float enqueued, GameplayTagSet? tags = null, IReadOnlyList<float>? latencies = null)

    Makes one.

  • public float WaitedFor(float now)

    How long they have waited.

  • public float LatencyTo(int region)

    Their latency to a region, or infinity when it has not been measured.

Used by (9)

  • DuelsVixen.Live.Matchmaking.Tests
  • HighestQualityEvaluatorVixen.Live.Matchmaking
  • IMatchFunctionVixen.Live.Matchmaking
  • MatchPoolVixen.Live.Matchmaking
  • MatchProposalVixen.Live.Matchmaking
  • MatchmakerVixen.Live.Matchmaking
  • MatchmakerTestsVixen.Live.Matchmaking.Tests
  • RecorderVixen.Live.Matchmaking.Tests
  • TeamsVixen.Live.Matchmaking.Tests