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); } }
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); }
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); }