Skip to main content

JoinResult

A class in Root.Township, Alta.Networking.Servers.

Client: the outcome of trying to join a server, with a player-facing message for each failure.

Constructors​

MemberWhat it is
JoinResult()Creates a JoinResult with default values.

Properties​

MemberWhat it is
Connection ConnectionToServer { get; private set; }The connection on success.
string ErrorMessage { get; }The text shown to the player for this result.
bool IsRecoverableFailure { get; }True for results worth retrying, such as the server starting up, lost connection or busy.
string Message { get; private set; }Extra message passed with a failure.
ClientJoinResult Result { get; private set; }The join result code.
JoinedServerInfo ServerInfo { get; private set; }Info about the joined server on success.
bool WasSuccessful { get; private set; }True if the join worked.

Methods​

MemberWhat it is
static JoinResult FailedResult(ClientJoinResult result, string message = null)Makes a failed result with a code and optional message.
static JoinResult SuccessResult(Connection connectionToServer, JoinedServerInfo serverInfo)Makes a successful result with the connection and server info.

Used in​

Members of other types that take, return or hold a JoinResult: