/// <summary> /// 分包id下载完毕的回调 /// </summary> /// <param name="patch_id"></param> void OnPatchFinished(int patch_id) { // 向服务端发送当前已下载的分包id var send_patch_id = new C2SPlayerCurrentPatchId(); send_patch_id.patch_id = (uint)patch_id; NetClient.GetBaseClient().SendData <C2SPlayerCurrentPatchId>(NetMsg.MSG_PLAYER_CURRENT_PATCH_ID, send_patch_id); }
void RequestAppendInfo()// 请求所有本地角色相关系统的信息 { GameDebug.LogRed("RequestAppendInfo"); var requeset_all_info = new C2SPlayerRequestAllInfo(); NetClient.GetBaseClient().SendData <C2SPlayerRequestAllInfo>(NetMsg.MSG_PLAYER_REQUEST_ALL_INFO, requeset_all_info); // 向服务端发送当前已下载的分包id var send_patch_id = new C2SPlayerCurrentPatchId(); send_patch_id.patch_id = (uint)xpatch.XPatchManager.Instance.GetDownloadPatchId(); NetClient.GetBaseClient().SendData <C2SPlayerCurrentPatchId>(NetMsg.MSG_PLAYER_CURRENT_PATCH_ID, send_patch_id); }