public void read(MemoryStream msdata) { uid = proto_util.readUInt(msdata); roomUid = proto_util.readUInt(msdata); PMatchRecordRole.readLoop(msdata, roleList); timestamp = proto_util.readUInt(msdata); allPlayCount = proto_util.readByte(msdata); }
public void write(MemoryStream msdata) { proto_util.writeUInt(msdata, uid); proto_util.writeUInt(msdata, roomUid); PMatchRecordRole.writeLoop(msdata, roleList); proto_util.writeUInt(msdata, timestamp); proto_util.writeByte(msdata, allPlayCount); }
public static void readLoop(MemoryStream msdata, List <PMatchRecordRole> p) { int Len = proto_util.readShort(msdata); for (int i = 0; i < Len; i++) { PMatchRecordRole _pm = new PMatchRecordRole(); _pm.read(msdata); p.Add(_pm); } }