Esempio n. 1
0
 public void ClearAllCallback()
 {
     mGetServerDataFinishedCallback            = null;
     mGetLastLoginServerInfoFinishedCallback   = null;
     mGetAllRegionFinishedCallback             = null;
     mGetLatelyLoginServerListFinishedCallback = null;
     mGetAllRecommServerFinishedCallback       = null;
     mGetServerListFinishedCallback            = null;
     mGetServerStateFinishedCallback           = null;
 }
Esempio n. 2
0
        /// <summary>
        /// 获取服务器列表
        /// </summary>
        /// <param name="region_id">Section identifier.</param>
        /// <param name="finishedCallback">Finished callback.</param>
        public void GetServerList(int region_id, GetServerListFinishedDelegate finishedCallback)
        {
            GlobalConfig globalConfig = GlobalConfig.GetInstance();
            string       url          = globalConfig.CSURLV + "GetServerList?show_marked=" + globalConfig.ServerType
                                        + "&region_id=" + region_id
                                        + "&game_mark=" + globalConfig.GameMark
                                        + "&account=" + globalConfig.LoginInfo.AccName
                                        + "&device_mark=" + globalConfig.DeviceMark;

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

            mGetServerListFinishedCallback = finishedCallback;
        }