Пример #1
0
 public void read(MemoryStream msdata)
 {
     role.read(msdata);
     credit    = proto_util.readUInt(msdata);
     position  = proto_util.readUByte(msdata);
     costDiam  = proto_util.readUByte(msdata);
     timestamp = proto_util.readUInt(msdata);
 }
Пример #2
0
 public void read(MemoryStream msdata)
 {
     role.read(msdata);
     place         = proto_util.readUByte(msdata);
     allScore      = proto_util.readShort(msdata);
     huCount       = proto_util.readUByte(msdata);
     beHuCount     = proto_util.readUByte(msdata);
     mingGangCount = proto_util.readUByte(msdata);
     anGangCount   = proto_util.readUByte(msdata);
 }
Пример #3
0
 public void read(MemoryStream msdata)
 {
     role.read(msdata);
     place       = proto_util.readUByte(msdata);
     roleState   = proto_util.readUByte(msdata);
     isRoomOwner = proto_util.readBool(msdata);
     longitude   = proto_util.readUInt(msdata);
     latitude    = proto_util.readUInt(msdata);
     credit      = proto_util.readUShort(msdata);
     ipAddr      = proto_util.readString(msdata);
 }
Пример #4
0
        public static void readLoop(MemoryStream msdata, List <PSimpleRole> p)
        {
            int Len = proto_util.readShort(msdata);

            for (int i = 0; i < Len; i++)
            {
                PSimpleRole _pm = new PSimpleRole();
                _pm.read(msdata);
                p.Add(_pm);
            }
        }
Пример #5
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);
 }