少年修仙传客户端代码仓库
client_Wu Xijin
2019-06-28 25953cff9f1132b429645d2b0060533652b68bbb
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
4个文件已修改
40 ■■■■ 已修改文件
Core/NetworkPackage/ClientPack/ClientToMapServer/CB2_NewFunction/CB206_tagCMAddPoint.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Lua/Gen/SnxxzUIReikiRootModelWrap.cs 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Role/ReikiRootModel.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Role/ReikiRootWin.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/NetworkPackage/ClientPack/ClientToMapServer/CB2_NewFunction/CB206_tagCMAddPoint.cs
@@ -6,7 +6,7 @@
public class CB206_tagCMAddPoint : GameNetPackBasic {
    public byte PointAttrIDCount;    // 加点属性ID个数
    public  byte[] PointAttrIDList;    // 加点属性ID列表
    public  ushort[] PointValueList;    // 加点属性ID对应的点数列表
    public  uint[] PointValueList;    // 加点属性ID对应的点数列表
    public CB206_tagCMAddPoint () {
        combineCmd = (ushort)0x03FE;
@@ -16,7 +16,7 @@
    public override void WriteToBytes () {
        WriteBytes (PointAttrIDCount, NetDataType.BYTE);
        WriteBytes (PointAttrIDList, NetDataType.BYTE, PointAttrIDCount);
        WriteBytes (PointValueList, NetDataType.WORD, PointAttrIDCount);
        WriteBytes (PointValueList, NetDataType.DWORD, PointAttrIDCount);
    }
}
Lua/Gen/SnxxzUIReikiRootModelWrap.cs
@@ -45,7 +45,6 @@
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsQualityProperty", _m_IsQualityProperty);
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsPreReikiRoot", _m_IsPreReikiRoot);
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "ReceivePackage", _m_ReceivePackage);
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendAddPoint", _m_SendAddPoint);
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshReikiRootPoint", _m_RefreshReikiRootPoint);
            
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "onCacheFreePointRefresh", _e_onCacheFreePointRefresh);
@@ -794,35 +793,6 @@
                    HB107_tagMCRolePointInfo _package = (HB107_tagMCRolePointInfo)translator.GetObject(L, 2, typeof(HB107_tagMCRolePointInfo));
                    
                    gen_to_be_invoked.ReceivePackage( _package );
                    return 0;
                }
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
        }
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SendAddPoint(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                Snxxz.UI.ReikiRootModel gen_to_be_invoked = (Snxxz.UI.ReikiRootModel)translator.FastGetCSObj(L, 1);
                {
                    byte[] _points = LuaAPI.lua_tobytes(L, 2);
                    ushort[] _pointValues = (ushort[])translator.GetObject(L, 3, typeof(ushort[]));
                    gen_to_be_invoked.SendAddPoint( _points, _pointValues );
                    
                    
                    
System/Role/ReikiRootModel.cs
@@ -658,7 +658,7 @@
            }
        }
        public void SendAddPoint(byte[] points, ushort[] pointValues)
        public void SendAddPoint(byte[] points, uint[] pointValues)
        {
            var pak = new CB206_tagCMAddPoint();
            pak.PointAttrIDList = points;
System/Role/ReikiRootWin.cs
@@ -386,14 +386,14 @@
                }
                var ids = new byte[length];
                var values = new ushort[length];
                var values = new uint[length];
                var index = 0;
                for (int i = 0; i < m_ReikiRootPoints.Count; i++)
                {
                    if (m_ReikiRootPoints[i].point > 0)
                    {
                        ids[index] = (byte)m_ReikiRootPoints[i].id;
                        values[index] = (ushort)m_ReikiRootPoints[i].point;
                        values[index] = (uint)m_ReikiRootPoints[i].point;
                        index++;
                    }
                }