using UnityEngine;
|
using System.Collections;
|
|
/** 通知 邀请加入切磋 */
|
public class HA701_InviteJoinPlayerVsPlayer : GameNetPackBasic {
|
|
public int PlayerID; //邀请者ID
|
public short PlayertNameLen; //邀请者名字长度
|
public string PlayeName; //size = PlayertNameLen
|
|
public HA701_InviteJoinPlayerVsPlayer () {
|
_cmd = (ushort)0xA701;
|
}
|
|
/** 从字节包中解析信息 */
|
public override void ReadFromBytes (byte[] vBytes) {
|
TransBytes (out PlayerID, vBytes, NetDataType.DWORD);
|
TransBytes (out PlayertNameLen, vBytes, NetDataType.BYTE);
|
TransBytes (out PlayeName, vBytes, NetDataType.Chars, PlayertNameLen);
|
}
|
}
|