本文整理汇总了C#中BlueSheep.Interface.AccountUC.TryReconnect方法的典型用法代码示例。如果您正苦于以下问题:C# AccountUC.TryReconnect方法的具体用法?C# AccountUC.TryReconnect怎么用?C# AccountUC.TryReconnect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BlueSheep.Interface.AccountUC
的用法示例。
在下文中一共展示了AccountUC.TryReconnect方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Test
public static void Test(uint status, AccountUC account)
{
switch (status)
{
case m_Offline:
account.Log(new ConnectionTextInformation("Echec de connexion : serveur déconnecté."),0);
account.TryReconnect(600);
break;
case m_Saving:
account.Log(new ConnectionTextInformation("Echec de connexion : serveur en sauvegarde."),0);
account.TryReconnect(600);
break;
case m_Full:
account.Log(new ConnectionTextInformation("Echec de connexion : serveur complet."),0);
account.TryReconnect(60);
break;
default:
account.Log(new ConnectionTextInformation("Echec de connexion : raison inconnue."),0);
account.TryReconnect(30);
break;
}
}
示例2: Test
public static void Test(int reason, AccountUC account)
{
switch (reason)
{
case m_WrongCredentials:
account.Log(new ErrorTextInformation("Echec de connexion : mauvais identifiants."),0);
break;
case m_Banned:
account.Log(new ErrorTextInformation("Echec de connexion : compte banni."), 0);
break;
case m_Kicked:
account.Log(new ErrorTextInformation("Echec de connexion : compte banni temporairement."), 0);
break;
case m_InMaintenance:
account.Log(new ErrorTextInformation("Echec de connexion : serveur en maintenance."), 0);
account.TryReconnect(15);
break;
default:
account.Log(new ErrorTextInformation("Echec de connexion : erreur inconnue."), 0);
break;
}
}
示例3: ServerListMessageTreatment
public static void ServerListMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
{
account.Log(new ConnectionTextInformation("Serveur complet."), 0);
account.TryReconnect(600);
}
示例4: CharacterSelectedErrorMessageTreatment
public static void CharacterSelectedErrorMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
{
account.Log(new ConnectionTextInformation("Erreur lors de la sélection du personnage."),0);
account.TryReconnect(30);
}