示例#1
0
 public void ClearAllCallback()
 {
     mGetServerDataFinishedCallback            = null;
     mGetLastLoginServerInfoFinishedCallback   = null;
     mGetAllRegionFinishedCallback             = null;
     mGetLatelyLoginServerListFinishedCallback = null;
     mGetAllRecommServerFinishedCallback       = null;
     mGetServerListFinishedCallback            = null;
     mGetServerStateFinishedCallback           = null;
 }
示例#2
0
        /// <summary>
        /// 获取最近登录服务器列表
        /// </summary>
        public void GetLatelyLoginServerInfo(GetLatelyLoginServerListFinishedDelegate finishCallback)
        {
            GlobalConfig globalConfig = GlobalConfig.GetInstance();

            GlobalConfig.LoginInfoStruct loginInfo = globalConfig.LoginInfo;
            IBridge bridge = DBOSManager.getOSBridge();

            string url = globalConfig.CSURLV + "GetLatelyLoginServerInfo?show_marked=" + globalConfig.ServerType
                         + "&game_mark=" + GlobalConfig.Instance.GameMark
                         + "&account=" + globalConfig.LoginInfo.AccName
                         + "&device_mark=" + globalConfig.DeviceMark;

            MainGame.HttpRequest.GET(url, OnGetLatelyLoginServerInfoFinished, null);

            mGetLatelyLoginServerListFinishedCallback = finishCallback;
        }