public void read(MemoryStream msdata) { PRumorRole.readLoop(msdata, role); PRumorGoods.readLoop(msdata, goods); PRumorMon.readLoop(msdata, mon); proto_util.readLoopUInt(msdata, iData); proto_util.readLoopString(msdata, sData); }
public void write(MemoryStream msdata) { PRumorRole.writeLoop(msdata, role); PRumorGoods.writeLoop(msdata, goods); PRumorMon.writeLoop(msdata, mon); proto_util.writeLoopUInt(msdata, iData); proto_util.writeLoopString(msdata, sData); }
public static void readLoop(MemoryStream msdata, List <PRumorGoods> p) { int Len = proto_util.readShort(msdata); for (int i = 0; i < Len; i++) { PRumorGoods _pm = new PRumorGoods(); _pm.read(msdata); p.Add(_pm); } }