示例#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);
            }
        }
示例#2
0
 public void write(MemoryStream msdata)
 {
     role.write(msdata);
     proto_util.writeUByte(msdata, place);
     hideCardList.write(msdata);
     PMjCardSuit.writeLoop(msdata, showCardList);
     winCardList.write(msdata);
     proto_util.writeBool(msdata, isHuazhu);
     proto_util.writeBool(msdata, isDajiao);
     proto_util.writeShort(msdata, curScore);
     proto_util.writeShort(msdata, allScore);
 }
示例#3
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);
 }
示例#4
0
 public void write(MemoryStream msdata)
 {
     proto_util.writeUInt(msdata, roleId);
     hideCardList.write(msdata);
     PMjCardSuit.writeLoop(msdata, showCardList);
     winCardList.write(msdata);
     discardCardList.write(msdata);
     dropCardList.write(msdata);
     exchangeCardList.write(msdata);
     getExchangeCardList.write(msdata);
     proto_util.writeShort(msdata, curScore);
     proto_util.writeShort(msdata, allScore);
     proto_util.writeShort(msdata, queType);
 }
示例#5
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);
 }