public void read(MemoryStream msdata) { stren = proto_util.readUByte(msdata); refine = proto_util.readUByte(msdata); PGemInHole.readLoop(msdata, gemList); PSuitAttr.readLoop(msdata, suitList); }
public void write(MemoryStream msdata) { proto_util.writeUByte(msdata, stren); proto_util.writeUByte(msdata, refine); PGemInHole.writeLoop(msdata, gemList); PSuitAttr.writeLoop(msdata, suitList); }
public static void readLoop(MemoryStream msdata, List <PGemInHole> p) { int Len = proto_util.readShort(msdata); for (int i = 0; i < Len; i++) { PGemInHole _pm = new PGemInHole(); _pm.read(msdata); p.Add(_pm); } }