Skip to main content

DeepLinkFailureController

A static class in Root.Township, the global namespace.

Client: when a server join fails, shows an error popup and sends a fail analytics event. Used by JoinedServerGameMode and OculusDeepLinkService.

Fields​

2 private and internal fields
MemberWhat it is
private const string BoardTitlePopup title, An Error Occurred.
private static readonly Logger loggerNLog logger; unused here.

Methods​

MemberWhat it is
static void DisplayErrorMessageForJoinResult(JoinResult joinResult)Maps the join result to a message and reason, sends the fail event with the Oculus server ID, and shows the popup.
2 private and internal methods
MemberWhat it is
private static string DisplayDefaultOrSpecificMessage(JoinResult clientJoinResult)Returns the join result's error message, or a generic try-again message if it has none.
private static void GetFailReasonAndMessage(JoinResult joinResult, out string message, out DeeplinkEventFailReason failReason)Picks the message and fail reason for bans, wrong version and private servers; anything else counts as other error.