csharp
public sealed class MatchTicketOne entry in a queue: a party, what they are, and how long they have waited.
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 IdWhat names it.
public ReadOnlySpan<PlayerId> PlayersWho is in it.
public int SizeHow many. A party is never split, so this is how many seats it takes.
public Rating RatingHow good they are thought to be.
public float EnqueuedWhen they joined.
public GameplayTagSet TagsWhat 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