Example #1
0
 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);
 }
Example #2
0
 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);
 }
Example #3
0
        public static void readLoop(MemoryStream msdata, List <PRumorRole> p)
        {
            int Len = proto_util.readShort(msdata);

            for (int i = 0; i < Len; i++)
            {
                PRumorRole _pm = new PRumorRole();
                _pm.read(msdata);
                p.Add(_pm);
            }
        }