示例#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);
 }
示例#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);
 }
示例#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);
            }
        }