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); w.Write(this.unknown1); w.Write(this.unknown2); w.Write(this.unknown3); w.Write(this.unknown4); if (this.matdList == null) { this.matdList = new MATDList(OnResourceChanged); } matdList.UnParse(s); if (this.colorList == null) { this.colorList = new SwatchColorList(OnResourceChanged); } this.colorList.UnParse(s); w.Write(this.unknown5); w.Write(this.catalogGroupID); return(s); }