少年修仙传客户端代码仓库
client_Wu Xijin
2018-12-26 4e1ba16e69c1d3815a4af1ad994d6a3610a605ee
5398 子 【开发】【1.4】跨服竞技场 / 【前端】【1.4】跨服竞技场开发
1个文件已修改
2个文件已添加
38 ■■■■■ 已修改文件
Core/NetworkPackage/ClientPack/ClientToGameServer/CC0_CrossRealm/CC003_tagCGForceQuitCrossState.cs 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/NetworkPackage/ClientPack/ClientToGameServer/CC0_CrossRealm/CC003_tagCGForceQuitCrossState.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Login/CrossServerLogin.cs 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/NetworkPackage/ClientPack/ClientToGameServer/CC0_CrossRealm/CC003_tagCGForceQuitCrossState.cs
New file
@@ -0,0 +1,19 @@
using UnityEngine;
using System.Collections;
// C0 03 强制退出跨服状态 #tagCGForceQuitCrossState
public class CC003_tagCGForceQuitCrossState : GameNetPackBasic
{
    public CC003_tagCGForceQuitCrossState()
    {
        combineCmd = (ushort)0x1801;
        _cmd = (ushort)0xC003;
    }
    public override void WriteToBytes()
    {
    }
}
Core/NetworkPackage/ClientPack/ClientToGameServer/CC0_CrossRealm/CC003_tagCGForceQuitCrossState.cs.meta
New file
@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 8121ba00aeb53ff4cab35031d1b94af1
timeCreated: 1545810908
licenseType: Pro
MonoImporter:
  serializedVersion: 2
  defaultReferences: []
  executionOrder: 0
  icon: {instanceID: 0}
  userData:
  assetBundleName:
  assetBundleVariant:
System/Login/CrossServerLogin.cs
@@ -49,8 +49,8 @@
                opponentName = matchOK.MatchPlayer[0].PlayerName,
                opponentJob = matchOK.MatchPlayer[0].Job,
                opponentMaxHp = (int)matchOK.MatchPlayer[0].MaxHP,
                opponentLevel=(int)matchOK.MatchPlayer[0].LV,
                opponentPlayerId=(int)matchOK.MatchPlayer[0].PlayerID,
                opponentLevel = (int)matchOK.MatchPlayer[0].LV,
                opponentPlayerId = (int)matchOK.MatchPlayer[0].PlayerID,
            };
            Clock.Create(DateTime.Now + new TimeSpan(5 * TimeSpan.TicksPerSecond), () =>
@@ -241,7 +241,8 @@
            }
            else
            {
                //需要服务端再给一个封包来处理登录跨服失败的情况
                var sendInfo = new CC003_tagCGForceQuitCrossState();
                GameNetSystem.Instance.SendInfo(sendInfo);
                loginModel.ReAccountLogin();
            }
        }