protected override void Parse(Stream s) { BinaryReader r = new BinaryReader(s); base.Parse(s); this.matdList = new MATDList(OnResourceChanged, s); this.thumList = new ThumbnailList(OnResourceChanged, s); this.unknown1 = r.ReadUInt32(); this.colorList = new SwatchColorList(OnResourceChanged, s); this.catalogGroupID = r.ReadUInt64(); }
protected override Stream UnParse() { var s = base.UnParse(); BinaryWriter w = new BinaryWriter(s); if (this.matdList == null) { this.matdList = new MATDList(OnResourceChanged); } matdList.UnParse(s); if (this.thumList == null) { this.thumList = new ThumbnailList(OnResourceChanged); } this.thumList.UnParse(s); w.Write(this.unknown1); if (this.colorList == null) { this.colorList = new SwatchColorList(OnResourceChanged); } this.colorList.UnParse(s); w.Write(this.catalogGroupID); return(s); }