Example #1
0
 public void read(MemoryStream msdata)
 {
     pos = proto_util.readUShort(msdata);
     PRankRole.readLoop(msdata, role);
     proto_util.readLoopUInt(msdata, data);
     PGoods.readLoop(msdata, goodsList);
 }
Example #2
0
 public void write(MemoryStream msdata)
 {
     proto_util.writeUShort(msdata, pos);
     PRankRole.writeLoop(msdata, role);
     proto_util.writeLoopUInt(msdata, data);
     PGoods.writeLoop(msdata, goodsList);
 }
Example #3
0
        public static void readLoop(MemoryStream msdata, List <PRankRole> p)
        {
            int Len = proto_util.readShort(msdata);

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