protected override Stream UnParse()
 {
     var s = base.UnParse();
     BinaryWriter w = new BinaryWriter(s);
     if (this.modlEntryList1 == null) this.modlEntryList1 = new ModlEntryList(OnResourceChanged, s);
     this.modlEntryList1.UnParse(s);
     if (this.modlEntryList2 == null) this.modlEntryList2 = new ModlEntryList(OnResourceChanged, s);
     this.modlEntryList2.UnParse(s);
     if (this.modlEntryList3 == null) this.modlEntryList3 = new ModlEntryList(OnResourceChanged, s);
     this.modlEntryList3.UnParse(s);
     if (this.modlEntryList4 == null) this.modlEntryList4 = new ModlEntryList(OnResourceChanged, s);
     this.modlEntryList4.UnParse(s);
     if (this.modlTGIReference1 == null) this.modlTGIReference1 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG");
     this.modlTGIReference1.UnParse(s);
     if (this.modlTGIReference2 == null) this.modlTGIReference2 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG");
     this.modlTGIReference2.UnParse(s);
     if (this.modlTGIReference3 == null) this.modlTGIReference3 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG");
     this.modlTGIReference3.UnParse(s);
     if (this.modlTGIReference4 == null) this.modlTGIReference4 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG");
     this.modlTGIReference4.UnParse(s);
     if (this.modlTGIReference5 == null) this.modlTGIReference5 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG");
     this.modlTGIReference5.UnParse(s);
     if (this.modlTGIReference6 == null) this.modlTGIReference6 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG");
     this.modlTGIReference6.UnParse(s);
     if (this.modlTGIReference7 == null) this.modlTGIReference7 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG");
     this.modlTGIReference7.UnParse(s);
     w.Write(this.unknown);
     w.Write(this.catalogGroupID);
     if (this.colorList == null) this.colorList = new SwatchColorList(OnResourceChanged);
     this.colorList.UnParse(s);
     return s;
 }
Example #2
0
 protected override void Parse(Stream s)
 {
     base.Parse(s);
     BinaryReader r = new BinaryReader(s);
     this.modlEntryList1 = new ModlEntryList(OnResourceChanged, s);
     this.modlEntryList2 = new ModlEntryList(OnResourceChanged, s);
     this.modlEntryList3 = new ModlEntryList(OnResourceChanged, s);
     this.modlEntryList4 = new ModlEntryList(OnResourceChanged, s);
     this.modlTGIReference1 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG", s);
     this.modlTGIReference2 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG", s);
     this.modlTGIReference3 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG", s);
     this.modlTGIReference4 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG", s);
     this.modlTGIReference5 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG", s);
     this.modlTGIReference6 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG", s);
     this.modlTGIReference7 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG", s);
     this.unknown1 = r.ReadUInt32();
     this.unknown2 = r.ReadByte();
     this.unknown3 = r.ReadUInt32();
     this.catalogGroupID = r.ReadUInt64();
     this.rsltTGIReference = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG", s);
     this.unknownList1 = new SimpleList<uint>(OnResourceChanged);
     ushort count = r.ReadUInt16();
     for (int i = 0; i < count; i++) this.unknownList1.Add(r.ReadUInt32());
     this.unknownList2 = new SimpleList<uint>(OnResourceChanged);
     count = r.ReadUInt16();
     for (int i = 0; i < count; i++) this.unknownList2.Add(r.ReadUInt32());
     count = r.ReadUInt16();
     this.unknownList3 = new SimpleList<uint>(OnResourceChanged);
     for (int i = 0; i < count; i++) this.unknownList3.Add(r.ReadUInt32());
     this.colorList = new SwatchColorList(OnResourceChanged, s);
     this.unknown4 = r.ReadUInt32();
 }
 protected override void Parse(Stream s)
 {
     base.Parse(s);
     BinaryReader r = new BinaryReader(s);
     this.modlEntryList1 = new ModlEntryList(OnResourceChanged, s);
     this.modlEntryList2 = new ModlEntryList(OnResourceChanged, s);
     this.modlEntryList3 = new ModlEntryList(OnResourceChanged, s);
     this.modlEntryList4 = new ModlEntryList(OnResourceChanged, s);
     this.modlTGIReference1 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG", s);
     this.modlTGIReference2 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG", s);
     this.modlTGIReference3 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG", s);
     this.modlTGIReference4 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG", s);
     this.modlTGIReference5 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG", s);
     this.modlTGIReference6 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG", s);
     this.modlTGIReference7 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG", s);
     this.unknown = r.ReadUInt32();
     this.catalogGroupID = r.ReadUInt64();
     this.colorList = new SwatchColorList(OnResourceChanged, s);
 }
Example #4
0
 protected override Stream UnParse()
 {
     var s = base.UnParse();
     BinaryWriter w = new BinaryWriter(s);
     if (this.modlEntryList1 == null) this.modlEntryList1 = new ModlEntryList(OnResourceChanged, s);
     this.modlEntryList1.UnParse(s);
     if (this.modlEntryList2 == null) this.modlEntryList2 = new ModlEntryList(OnResourceChanged, s);
     this.modlEntryList2.UnParse(s);
     if (this.modlEntryList3 == null) this.modlEntryList3 = new ModlEntryList(OnResourceChanged, s);
     this.modlEntryList3.UnParse(s);
     if (this.modlEntryList4 == null) this.modlEntryList4 = new ModlEntryList(OnResourceChanged, s);
     this.modlEntryList4.UnParse(s);
     if (this.modlTGIReference1 == null) this.modlTGIReference1 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG");
     this.modlTGIReference1.UnParse(s);
     if (this.modlTGIReference2 == null) this.modlTGIReference2 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG");
     this.modlTGIReference2.UnParse(s);
     if (this.modlTGIReference3 == null) this.modlTGIReference3 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG");
     this.modlTGIReference3.UnParse(s);
     if (this.modlTGIReference4 == null) this.modlTGIReference4 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG");
     this.modlTGIReference4.UnParse(s);
     if (this.modlTGIReference5 == null) this.modlTGIReference5 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG");
     this.modlTGIReference5.UnParse(s);
     if (this.modlTGIReference6 == null) this.modlTGIReference6 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG");
     this.modlTGIReference6.UnParse(s);
     if (this.modlTGIReference7 == null) this.modlTGIReference7 = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG");
     this.modlTGIReference7.UnParse(s);
     w.Write(this.unknown1);
     w.Write(this.unknown2);
     w.Write(this.unknown3);
     w.Write(this.catalogGroupID);
     if (this.rsltTGIReference == null) this.rsltTGIReference = new TGIBlock(RecommendedApiVersion, OnResourceChanged, "ITG");
     this.rsltTGIReference.UnParse(s);            
     if (this.unknownList1 == null) this.unknownList1 = new SimpleList<uint>(OnResourceChanged);
     w.Write((ushort)this.unknownList1.Count);
     foreach (var i in this.unknownList1) w.Write(i);            
     if (this.unknownList2 == null) this.unknownList2 = new SimpleList<uint>(OnResourceChanged);
     w.Write((ushort)this.unknownList2.Count);
     foreach (var i in this.unknownList2) w.Write(i);
     if (this.unknownList3 == null) this.unknownList3 = new SimpleList<uint>(OnResourceChanged);
     w.Write((ushort)this.unknownList3.Count);
     foreach (var i in this.unknownList3) w.Write(i);        
     if (this.colorList == null) this.colorList = new SwatchColorList(OnResourceChanged);
     this.colorList.UnParse(s);
     w.Write(this.unknown1);
     return s;
 }