コード例 #1
0
ファイル: ServerStatusEnum.cs プロジェクト: Sadikk/BlueSheep
        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
0
        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
0
ファイル: ConnectionHandler.cs プロジェクト: Sadikk/BlueSheep
 public static void ServerListMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
 {
     account.Log(new ConnectionTextInformation("Serveur complet."), 0);
     account.TryReconnect(600);
 }
コード例 #4
0
ファイル: CharacterHandler.cs プロジェクト: Sadikk/BlueSheep
 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);
 }