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