Beispiel #1
0
        private static void Disconnect(S.Disconnect p)
        {
            switch (p.Reason)
            {
            case 0:
                MirMessageBox.Show("Disconnected: Server is shutting down.", true);
                break;

            case 1:
                MirMessageBox.Show("Disconnected: Another user logged onto your account.", true);
                break;

            case 2:
                MirMessageBox.Show("Disconnected: Packet Error.", true);
                break;

            case 3:
                MirMessageBox.Show("Disconnected: Server Crashed.", true);
                break;

            case 4:
                MirMessageBox.Show("Disconnected: Kicked by Admin.", true);
                break;
            }

            GameScene.LogTime = 0;
        }
Beispiel #2
0
        private static void Disconnect(S.Disconnect p)
        {
            switch (p.Reason)
            {
            case 0:
                MirMessageBox.Show("断开连接: 服务器已关闭。", true);
                break;

            case 1:
                MirMessageBox.Show("断开连接: 你的账号被他人登录了。", true);
                break;

            case 2:
                MirMessageBox.Show("断开连接: 数据包错误。", true);
                break;

            case 3:
                MirMessageBox.Show("断开连接: 服务器崩溃。", true);
                break;

            case 4:
                MirMessageBox.Show("断开连接: 被管理员踢下线。", true);
                break;

            case 5:
                MirMessageBox.Show("断开连接: 服务器人数已满。", true);
                break;
            }

            GameScene.LogTime = 0;
        }
Beispiel #3
0
        private static void Disconnect(S.Disconnect p)
        {
            switch (p.Reason)
            {
            case 0:
                MirMessageBox.Show(GameLanguage.ShuttingDown, true);
                break;

            case 1:
                MirMessageBox.Show("已断开连接:另一个用户登录到您的帐户.", true);
                break;

            case 2:
                MirMessageBox.Show("断开连接:数据包错误.", true);
                break;

            case 3:
                MirMessageBox.Show("断开连接:服务器崩溃.", true);
                break;

            case 4:
                MirMessageBox.Show("断开连接:被管理员踢了.", true);
                break;

            case 5:
                MirMessageBox.Show("断开连接:服务器已达到最大连接数.", true);
                break;
            }

            GameScene.LogTime = 0;
        }
 public static void Disconnect(S.Disconnect p)
 {
     if (Connected)
     {
         Network.Disconnect();
     }
     SMForm.LoggedIn = false;
     MessageBox.Show("Disconnected");
 }