少年修仙传客户端代码仓库
client_Hale
2018-09-26 7bf41b868dca34485980bb3be2e0330d1e15d20b
update b106封包接入
2个文件已修改
4个文件已添加
80 ■■■■■ 已修改文件
Core/GameEngine/DataToCtl/PackageRegedit.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB106_tagMCNotifyPlayerMove.cs 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB106_tagMCNotifyPlayerMove.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/NetworkPackage/ServerPack/HB1_Role/HB106_tagMCNotifyPlayerMove.cs 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/NetworkPackage/ServerPack/HB1_Role/HB106_tagMCNotifyPlayerMove.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/MapTransferUtility.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/DataToCtl/PackageRegedit.cs
@@ -11,6 +11,7 @@
    public static void Init()
    {
        // 登记相应的数据体及对应的数据转逻辑类
        Register(typeof(HB106_tagMCNotifyPlayerMove), typeof(DTCB106_tagMCNotifyPlayerMove));
        Register(typeof(H0132_tagCreateRoleSucess), typeof(DTC0132_tagCreateRoleSucess));
        Register(typeof(HA326_tagMCNPCIDCollectionCntInfo), typeof(DTCA326_tagMCNPCIDCollectionCntInfo));
        Register(typeof(HA904_tagGCDogzNPCRefreshTime), typeof(DTCA904_tagGCDogzNPCRefreshTime));
Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB106_tagMCNotifyPlayerMove.cs
New file
@@ -0,0 +1,32 @@
//--------------------------------------------------------
//    [Author]:           第二世界
//    [  Date ]:           Wednesday, September 26, 2018
//--------------------------------------------------------
using UnityEngine;
public class DTCB106_tagMCNotifyPlayerMove : DtcBasic
{
    public override void Done(GameNetPackBasic vNetPack)
    {
        base.Done(vNetPack);
        var package = vNetPack as HB106_tagMCNotifyPlayerMove;
        MapTransferUtility.Instance.Clear();
        Vector3 _pos = new Vector3((package.PosX - GA_Hero.MapOffset.x) * .5f, 0, (package.PosY - GA_Hero.MapOffset.z) * .5f);
        PlayerDatas.Instance.hero.MoveToPosition(_pos);
        if (package.NPCID != 0)
        {
            MapTransferUtility.Instance.MapTransferDoType = MapTransferUtility.E_MapTransferDoType.Npc;
            MapTransferUtility.Instance.NpcID = (int)package.NPCID;
        }
    }
}
Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB106_tagMCNotifyPlayerMove.cs.meta
New file
@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 3826652b2693c1a4aba8f48340defea8
timeCreated: 1537926963
licenseType: Free
MonoImporter:
  serializedVersion: 2
  defaultReferences: []
  executionOrder: 0
  icon: {instanceID: 0}
  userData:
  assetBundleName:
  assetBundleVariant:
Core/NetworkPackage/ServerPack/HB1_Role/HB106_tagMCNotifyPlayerMove.cs
New file
@@ -0,0 +1,21 @@
using UnityEngine;
using System.Collections;
// B1 06 通知玩家向目标点移动 #tagMCNotifyPlayerMove
public class HB106_tagMCNotifyPlayerMove : GameNetPackBasic {
    public uint PosX;
    public uint PosY;
    public uint NPCID;    //目标点寻路NPCID, 可能为0
    public HB106_tagMCNotifyPlayerMove () {
        _cmd = (ushort)0xB106;
    }
    public override void ReadFromBytes (byte[] vBytes) {
        TransBytes (out PosX, vBytes, NetDataType.DWORD);
        TransBytes (out PosY, vBytes, NetDataType.DWORD);
        TransBytes (out NPCID, vBytes, NetDataType.DWORD);
    }
}
Core/NetworkPackage/ServerPack/HB1_Role/HB106_tagMCNotifyPlayerMove.cs.meta
New file
@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: fc7982354b8dd52459548536ebb5977d
timeCreated: 1537926821
licenseType: Free
MonoImporter:
  serializedVersion: 2
  defaultReferences: []
  executionOrder: 0
  icon: {instanceID: 0}
  userData:
  assetBundleName:
  assetBundleVariant:
Fight/MapTransferUtility.cs
@@ -126,7 +126,7 @@
    #region npc
    public int NpcID
    {
        get; private set;
        get; set;
    }
    #endregion