少年修仙传客户端代码仓库
hch
2024-12-16 9377811d0ba27047e1e5ec2348a28eba1033d59d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using UnityEngine;
using System.Collections;
 
// A2 16 自定义玩家聊天 #tagCMPyTalk
 
public class IL_CA216_tagCMPyTalk : GameNetPackBasic {
    public byte TalkType;    // 自定义聊天类型
    public ushort Len;
    public string Content;    //size = Len
 
    public IL_CA216_tagCMPyTalk () {
        combineCmd = (ushort)0x03FE;
        _cmd = (ushort)0xA216;
    }
 
    public override void WriteToBytes () {
        WriteBytes (TalkType, NetDataType.BYTE);
        WriteBytes (Len, NetDataType.WORD);
        WriteBytes (Content, NetDataType.Chars, Len);
    }
 
}