public override void LoadSection(BinaryReaderEx reader) { base.LoadSection(reader); this.TextureHeader = new TextureHeader(); this.TextureHeader.Unknown1 = reader.ReadInt32(); this.TextureHeader.Unknown2 = reader.ReadInt32(); this.TextureHeader.Unknown3 = reader.ReadInt32(); this.TextureHeader.Unknown4 = reader.ReadInt32(); // Load GTEX Gtex = new GtexData(); Gtex.Parent = this; Gtex.LoadSection(reader); this.Children = new List<INavigable>(); this.Children.Add(this.Gtex); }
public override void LoadSection(BinaryReaderEx reader) { base.LoadSection(reader); this.TextureHeader = new TextureHeader(); this.TextureHeader.Unknown1 = reader.ReadInt32(); this.TextureHeader.Unknown2 = reader.ReadInt32(); this.TextureHeader.Unknown3 = reader.ReadInt32(); this.TextureHeader.Unknown4 = reader.ReadInt32(); // Load GTEX Gtex = new GtexData(); Gtex.Parent = this; Gtex.LoadSection(reader); this.Children = new List <INavigable>(); this.Children.Add(this.Gtex); }
public override void LoadSection(BinaryReaderEx reader) { base.LoadSection(reader); this.VtexHeader = new VtexHeader(); this.VtexHeader.Unknown1 = reader.ReadInt32(); this.VtexHeader.DataLength = reader.ReadInt32(); this.VtexHeader.Unknown2 = reader.ReadInt16(); this.VtexHeader.Unknown3 = reader.ReadInt16(); this.VtexHeader.Unknown4 = reader.ReadInt16(); this.VtexHeader.Unknown5 = reader.ReadInt16(); this.VtexHeader.Unknown6 = reader.ReadInt32(); this.VtexHeader.Unknown7 = reader.ReadInt32(); this.VtexHeader.Unknown8 = reader.ReadInt32(); this.VtexHeader.Unknown9 = reader.ReadInt32(); this.VtexHeader.Unknown10 = reader.ReadInt32(); this.VtexHeader.Unknown11 = reader.ReadInt32(); this.VtexHeader.Unknown12 = reader.ReadInt32(); this.VtexHeader.Unknown13 = reader.ReadInt32(); this.VtexHeader.Unknown14 = reader.ReadInt32(); this.VtexHeader.Unknown15 = reader.ReadInt32(); this.VtexHeader.Unknown16 = reader.ReadInt32(); this.VtexHeader.Name = reader.ReadFixedLengthString(16).TrimEnd('\0'); this.VtexHeader.Extension = reader.ReadFixedLengthString(8).TrimEnd('\0'); this.VtexHeader.Unknown17 = reader.ReadInt32(); this.VtexHeader.GtexOffset = reader.ReadInt32(); this.VtexHeader.Unknown18 = reader.ReadInt32(); this.VtexHeader.Unknown19 = reader.ReadInt32(); reader.BaseStream.Position = this.SectionStart + 0x30 + this.VtexHeader.GtexOffset; // Load GTEX Gtex = new GtexData(); Gtex.Parent = this; Gtex.LoadSection(reader); this.Children = new List <INavigable>(); this.Children.Add(this.Gtex); }
public TextureSection(string resourceName, GtexData gtex) : base() { this.ResourceId = resourceName; this.Gtex = gtex; }
public override void LoadSection(BinaryReaderEx reader) { base.LoadSection(reader); this.VtexHeader = new VtexHeader(); this.VtexHeader.Unknown1 = reader.ReadInt32(); this.VtexHeader.DataLength = reader.ReadInt32(); this.VtexHeader.Unknown2 = reader.ReadInt16(); this.VtexHeader.Unknown3 = reader.ReadInt16(); this.VtexHeader.Unknown4 = reader.ReadInt16(); this.VtexHeader.Unknown5 = reader.ReadInt16(); this.VtexHeader.Unknown6 = reader.ReadInt32(); this.VtexHeader.Unknown7 = reader.ReadInt32(); this.VtexHeader.Unknown8 = reader.ReadInt32(); this.VtexHeader.Unknown9 = reader.ReadInt32(); this.VtexHeader.Unknown10 = reader.ReadInt32(); this.VtexHeader.Unknown11 = reader.ReadInt32(); this.VtexHeader.Unknown12 = reader.ReadInt32(); this.VtexHeader.Unknown13 = reader.ReadInt32(); this.VtexHeader.Unknown14 = reader.ReadInt32(); this.VtexHeader.Unknown15 = reader.ReadInt32(); this.VtexHeader.Unknown16 = reader.ReadInt32(); this.VtexHeader.Name = reader.ReadFixedLengthString(16).TrimEnd('\0'); this.VtexHeader.Extension = reader.ReadFixedLengthString(8).TrimEnd('\0'); this.VtexHeader.Unknown17 = reader.ReadInt32(); this.VtexHeader.GtexOffset = reader.ReadInt32(); this.VtexHeader.Unknown18 = reader.ReadInt32(); this.VtexHeader.Unknown19 = reader.ReadInt32(); reader.BaseStream.Position = this.SectionStart + 0x30 + this.VtexHeader.GtexOffset; // Load GTEX Gtex = new GtexData(); Gtex.Parent = this; Gtex.LoadSection(reader); this.Children = new List<INavigable>(); this.Children.Add(this.Gtex); }