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.
- Listed in Networking and servers
Constructors
| Member | What it is |
|---|---|
JoinResult() | Creates a JoinResult with default values. |
Properties
| Member | What 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
| Member | What 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:
ConnectToServerUtility.ConnectToServer, ConnectToServerUtility.HandleConnectionResultToServer, DeepLinkFailureController.DisplayDefaultOrSpecificMessage, DeepLinkFailureController.DisplayErrorMessageForJoinResult, DeepLinkFailureController.GetFailReasonAndMessage, JoinedServerGameMode.ConnectToServer, JoinedServerGameMode.LoadGameScene, JoinedServerGameMode.ReturnToMainMenuOnFailure, JoinServerGameModeBase.SetupClientScene, JoinServerPipeline.AttemptToConnectToServer, JoinServerPipeline.waitForServerResponse.