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);
|
}
|
|
}
|