public void addToStreamEx(Bundle stream, MATCHING_INFOS v) { stream.writeInt32(v.id); stream.writeUnicode(v.name); stream.writeInt32(v.teamId); stream.writeInt32(v.heroId); heroIdLst_DataType.addToStreamEx(stream, v.heroIdLst); }
public void addToStreamEx(Bundle stream, MATCHING_INFOS v) { stream.writeInt32(v.id); stream.writeUnicode(v.name); stream.writeUint8(v.roleType); stream.writeInt32(v.weaponId); stream.writeUint8(v.roomId); stream.writeUint8(v.roomPosition); stream.writeUint8(v.teamId); }
public override void onPushMatchPlayersData(MATCHING_INFOS_LIST infos) { for (int i = 0; i < infos.values.Count; i++) { MATCHING_INFOS info = infos.values[i]; Debug.Log("i::" + i + "info.id:::" + info.id); matchInfosDict[info.id] = info; } Debug.Log("matchInfosDict::::count" + matchInfosDict.Count + ",infos::::count:::" + infos.values.Count); }
public MATCHING_INFOS createFromStreamEx(MemoryStream stream) { MATCHING_INFOS datas = new MATCHING_INFOS(); datas.id = stream.readInt32(); datas.name = stream.readUnicode(); datas.teamId = stream.readInt32(); datas.heroId = stream.readInt32(); datas.heroIdLst = heroIdLst_DataType.createFromStreamEx(stream); return(datas); }
public MATCHING_INFOS createFromStreamEx(MemoryStream stream) { MATCHING_INFOS datas = new MATCHING_INFOS(); datas.id = stream.readInt32(); datas.name = stream.readUnicode(); datas.roleType = stream.readUint8(); datas.weaponId = stream.readInt32(); datas.roomId = stream.readUint8(); datas.roomPosition = stream.readUint8(); datas.teamId = stream.readUint8(); return(datas); }