Table of Contents

Class WorldQueuePresentation

Namespace
FishMMO.Client
Assembly
FishMMO.Client.dll

What UITKWorldQueueDisplay says about a wait in either queue — the world server's scene routing or the login server's admission — as pure functions.

public static class WorldQueuePresentation
Inheritance
WorldQueuePresentation
Inherited Members

Remarks

The panel only moves these strings and numbers into its elements. Keeping the wording and the arithmetic here lets a test pin every queue, every reason, every estimate and every edge of the progress bar without mounting a panel or a network.

Fields

EndedTitle

Header title once the world server has given up on the wait.

public const string EndedTitle = "COULD NOT ENTER THE WORLD"

Field Value

string

LoginDetail

The line under LoginHeadline.

public const string LoginDetail = "You are in line to connect. Players are let in a few at a time, in the order they arrived."

Field Value

string

Remarks

The login server admits from the front of its line at a fixed rate, so "a few at a time" is the honest description; the estimate beside it is that rate applied.

LoginEndedDetail

What the player can do about it. The login server does not say which of its two reasons ended the wait, so this names both rather than guessing.

public const string LoginEndedDetail = "The login server stopped holding your place: the wait ran too long, or the server is restarting. Sign in again to rejoin the queue from the back."

Field Value

string

Remarks

Unlike the world queue, the login queue keeps nothing across connections: a new attempt is a new arrival, so this one does say "from the back".

LoginEndedHeadline

The headline once the login server has given up on the wait.

public const string LoginEndedHeadline = "Your wait for the login server ended."

Field Value

string

LoginEndedTitle

Header title once the login server has given up on the wait.

public const string LoginEndedTitle = "COULD NOT CONNECT"

Field Value

string

LoginHeadline

What the client is waiting for in the login queue.

public const string LoginHeadline = "The login server is busy right now."

Field Value

string

LoginWaitingTitle

Header title while the client is waiting in the login queue.

public const string LoginWaitingTitle = "CONNECTING"

Field Value

string

Remarks

"Connecting" rather than "signing in": the login server queues any handshake over its capacity, and creating an account handshakes too.

UnknownEstimate

Shown in place of an estimate the server could not make.

public const string UnknownEstimate = "Unknown"

Field Value

string

Remarks

The server sends 0 when the queue is not draining at all, so any number here, even "0s", would be a promise nobody is keeping.

WaitingTitle

Header title while the client is waiting in the world queue.

public const string WaitingTitle = "ENTERING THE WORLD"

Field Value

string

Methods

Detail(QueueKind, WorldSceneQueueReason)

public static string Detail(QueueKind kind, WorldSceneQueueReason reason)

Parameters

kind QueueKind
reason WorldSceneQueueReason

Returns

string

Detail(WorldSceneQueueReason)

The line under Headline(QueueKind, WorldSceneQueueReason): what happens next, and why the order is fair.

public static string Detail(WorldSceneQueueReason reason)

Parameters

reason WorldSceneQueueReason

Returns

string

ElapsedText(double)

Elapsed wait as m:ss (or h:mm:ss past an hour).

public static string ElapsedText(double elapsedSeconds)

Parameters

elapsedSeconds double

Seconds waited. Negative and NaN read as 0.

Returns

string

EndedDetail(QueueKind, WorldSceneQueueReason)

What the player can do once a queue's wait has been abandoned.

public static string EndedDetail(QueueKind kind, WorldSceneQueueReason reason)

Parameters

kind QueueKind
reason WorldSceneQueueReason

Returns

string

EndedDetail(WorldSceneQueueReason)

What the player can do about it.

public static string EndedDetail(WorldSceneQueueReason reason)

Parameters

reason WorldSceneQueueReason

Returns

string

Remarks

A full world's ended wait says plainly that trying again soon keeps the place. The world server purges a capacity wait only when the line has stopped moving, and it holds the account's place for a grace window after the purge, so "Try again" resumes it. It used to say the retry queued from the back, which was true until the place was held.

EndedHeadline(QueueKind, WorldSceneQueueReason)

The headline once a queue's wait has been abandoned.

public static string EndedHeadline(QueueKind kind, WorldSceneQueueReason reason)

Parameters

kind QueueKind
reason WorldSceneQueueReason

Returns

string

EndedHeadline(WorldSceneQueueReason)

The headline once the world server has abandoned the wait, naming which wait failed.

public static string EndedHeadline(WorldSceneQueueReason reason)

Parameters

reason WorldSceneQueueReason

Returns

string

EndedLeaveLabel(QueueKind)

The way-out button once a wait has ended. The world queue's goes back to the login screen; the login queue's ended wait is already there, and the button only closes it.

public static string EndedLeaveLabel(QueueKind kind)

Parameters

kind QueueKind

Returns

string

EstimateText(int)

The server's estimate, rounded the way a person would say it, or UnknownEstimate.

public static string EstimateText(int estimatedWaitSeconds)

Parameters

estimatedWaitSeconds int

Server estimate; 0 or less means it has none.

Returns

string

Headline(QueueKind, WorldSceneQueueReason)

The headline for a queue. The login queue has one wait, so the reason is the world's alone.

public static string Headline(QueueKind kind, WorldSceneQueueReason reason)

Parameters

kind QueueKind
reason WorldSceneQueueReason

Returns

string

Headline(WorldSceneQueueReason)

The one-line statement of what the client is waiting for.

public static string Headline(WorldSceneQueueReason reason)

Parameters

reason WorldSceneQueueReason

Returns

string

Remarks

The three waits look the same from outside and mean different things: the world being full, a zone starting up, and the player's own body still standing in a fight they disconnected from. Only the last is self-inflicted, and a player who is not told about it cannot understand why they wait while the world is visibly not busy.

Note(QueueKind)

The small print under a live wait: what leaving costs.

public static string Note(QueueKind kind)

Parameters

kind QueueKind

Returns

string

Remarks

Leaving the world queue gives the place up for good, where a dropped connection keeps it for a while; that difference is worth one line. The login queue keeps nothing, so its note only says where leaving goes.

OffersRetry(QueueKind)

Whether an ended wait offers "Try again". Only the world queue can be rejoined from the panel: the session is still held. Rejoining the login queue means signing in again.

public static bool OffersRetry(QueueKind kind)

Parameters

kind QueueKind

Returns

bool

PositionText(int, int)

"Position of total", or the position alone when the total says nothing more.

public static string PositionText(int position, int totalQueued)

Parameters

position int

1-based position. Values below 1 read as 1.

totalQueued int

Size of the group being waited in.

Returns

string

Progress(int, int)

How much of the line that was ahead of this client when it started waiting has cleared, from 0 to 1.

public static float Progress(int startPosition, int position)

Parameters

startPosition int

The highest position this wait has reported.

position int

The position just reported.

Returns

float

Remarks

Measured against the start of this wait rather than against the whole queue: the queue behind the player keeps growing, and a bar that shrank as people joined after them would read as going backwards while they moved forwards. At the front of the line the bar is full, including a wait that started there.

Title(QueueKind, bool)

The panel's title for a queue, waiting or ended.

public static string Title(QueueKind kind, bool ended)

Parameters

kind QueueKind
ended bool

Returns

string