少年修仙传客户端代码仓库
hch
2025-06-12 204ef05a831c9484e2abc561d27ecbff7c797453
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using UnityEngine;
using System.Collections;
 
// A7 07 通知玩家自定义聊天 #tagMCPyTalk
 
public class IL_HA707_tagMCPyTalk : GameNetPackBasic {
    public byte TalkType;    // 自定义聊天类型
    public byte NameLen;
    public string Name;    //size = NameLen
    public uint PlayerID;
    public ushort Len;
    public string Content;    //size = Len
    public uint ExtraValue;    //附加值
    public string Extras;    //附加值列表
 
    public IL_HA707_tagMCPyTalk () {
        _cmd = (ushort)0xA707;
    }
 
    public override void ReadFromBytes (byte[] vBytes) {
        TransBytes (out TalkType, vBytes, NetDataType.BYTE);
        TransBytes (out NameLen, vBytes, NetDataType.BYTE);
        TransBytes (out Name, vBytes, NetDataType.Chars, NameLen);
        TransBytes (out PlayerID, vBytes, NetDataType.DWORD);
        TransBytes (out Len, vBytes, NetDataType.WORD);
        TransBytes (out Content, vBytes, NetDataType.Chars, Len);
        TransBytes (out ExtraValue, vBytes, NetDataType.DWORD);
        TransBytes (out Extras, vBytes, NetDataType.Chars, 256);
    }
 
}