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