Exemple #1
0
        public static void readLoop(MemoryStream msdata, List <PMjCardSuit> p)
        {
            int Len = proto_util.readShort(msdata);

            for (int i = 0; i < Len; i++)
            {
                PMjCardSuit _pm = new PMjCardSuit();
                _pm.read(msdata);
                p.Add(_pm);
            }
        }
Exemple #2
0
 public void read(MemoryStream msdata)
 {
     role.read(msdata);
     place = proto_util.readUByte(msdata);
     hideCardList.read(msdata);
     PMjCardSuit.readLoop(msdata, showCardList);
     winCardList.read(msdata);
     isHuazhu = proto_util.readBool(msdata);
     isDajiao = proto_util.readBool(msdata);
     curScore = proto_util.readShort(msdata);
     allScore = proto_util.readShort(msdata);
 }
Exemple #3
0
 public void read(MemoryStream msdata)
 {
     roleId = proto_util.readUInt(msdata);
     hideCardList.read(msdata);
     PMjCardSuit.readLoop(msdata, showCardList);
     winCardList.read(msdata);
     discardCardList.read(msdata);
     dropCardList.read(msdata);
     exchangeCardList.read(msdata);
     getExchangeCardList.read(msdata);
     curScore = proto_util.readShort(msdata);
     allScore = proto_util.readShort(msdata);
     queType  = proto_util.readShort(msdata);
 }