/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { base.Read(reader, parameters); // read structure data this.TextureDictionaryPointer = reader.ReadUInt64(); // HACK: read texture dictionary first! // this will make sure ShaderParameter Data will point to the already read TextureDX11 // instead of creating duplicated Texture blocks // TODO: edit ResourceDataReader block pool to handle these scenarios! // see https://github.com/carmineos/gta-toolkit/issues/11 // read reference data this.TextureDictionary = reader.ReadBlockAt <PgDictionary64 <TextureDX11> >( this.TextureDictionaryPointer // offset ); this.Shaders = reader.ReadBlock <ResourcePointerList64 <ShaderFX> >(); this.Unknown_20h = reader.ReadUInt32(); this.Unknown_24h = reader.ReadUInt32(); this.Unknown_28h = reader.ReadUInt32(); this.Unknown_2Ch = reader.ReadUInt32(); this.Unknown_30h = reader.ReadUInt32(); this.Unknown_34h = reader.ReadUInt32(); this.Unknown_38h = reader.ReadUInt32(); this.Unknown_3Ch = reader.ReadUInt32(); }
public void Load(Stream stream) { var resource = new ResourceFile_GTA5_pc <PgDictionary64 <Expression> >(); resource.Load(stream); expressionDictionary = resource.ResourceData; }
public void Load(string fileName) { var resource = new ResourceFile_GTA5_pc <PgDictionary64 <Expression> >(); resource.Load(fileName); expressionDictionary = resource.ResourceData; }
/// <summary> /// Loads the texture dictionary from a file. /// </summary> public void Load(string fileName) { var resource = new ResourceFile_GTA5_pc <PgDictionary64 <TextureDX11> >(); resource.Load(fileName); textureDictionary = resource.ResourceData; }
public void Load(Stream stream) { var resource = new ResourceFile_GTA5_pc <PgDictionary64 <CharacterCloth> >(); resource.Load(stream); clothDictionary = resource.ResourceData; }
public void Load(string fileName) { var resource = new ResourceFile_GTA5_pc <PgDictionary64 <Bound> >(); resource.Load(fileName); boundDictionary = resource.ResourceData; }
public void Load(Stream stream) { var resource = new ResourceFile_GTA5_pc <PgDictionary64 <GtaDrawable> >(); resource.Load(stream); drawableDictionary = resource.ResourceData; }
public void Load(Stream stream) { var resource = new ResourceFile_GTA5_pc <PgDictionary64 <Bound> >(); resource.Load(stream); boundDictionary = resource.ResourceData; }
public void Load(string fileName) { var resource = new ResourceFile_GTA5_pc <PgDictionary64 <GtaDrawable> >(); resource.Load(fileName); drawableDictionary = resource.ResourceData; }
public void Load(string fileName) { var resource = new ResourceFile_GTA5_pc <PgDictionary64 <CharacterCloth> >(); resource.Load(fileName); clothDictionary = resource.ResourceData; }
public void Load(Stream stream) { var resource = new ResourceFile_GTA5_pc <PgDictionary64 <Filter> >(); resource.Load(stream); filterDictionary = resource.ResourceData; }
public void Load(Stream stream) { var resource = new ResourceFile_GTA5_pc <PgDictionary64 <TextureDX11> >(); resource.Load(stream); if (resource.Version != 13) { throw new Exception("version error"); } textureDictionary = resource.ResourceData; }
public override void Read(ResourceDataReader reader, params object[] parameters) { base.Read(reader, parameters); // read structure data this.TextureDictionaryPointer = reader.ReadUInt64(); this.Shaders = reader.ReadBlock <ResourcePointerList64 <Struct_20> >(); this.Unknown_20h = reader.ReadUInt64(); this.Unknown_28h = reader.ReadUInt64(); this.Unknown_30h = reader.ReadUInt64(); this.Unknown_38h = reader.ReadUInt64(); // read reference data this.TextureDictionary = reader.ReadBlockAt <PgDictionary64 <Texture> >(this.TextureDictionaryPointer); }
/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { base.Read(reader, parameters); // read structure data this.NamePointer = reader.ReadUInt64(); this.Unknown_18h = reader.ReadUInt32(); this.Unknown_1Ch = reader.ReadUInt32(); this.TextureDictionaryPointer = reader.ReadUInt64(); this.Unknown_28h = reader.ReadUInt32(); this.Unknown_2Ch = reader.ReadUInt32(); this.DrawableDictionaryPointer = reader.ReadUInt64(); this.ParticleRuleDictionaryPointer = reader.ReadUInt64(); this.Unknown_40h = reader.ReadUInt32(); this.Unknown_44h = reader.ReadUInt32(); this.EmitterRuleDictionaryPointer = reader.ReadUInt64(); this.EffectRuleDictionaryPointer = reader.ReadUInt64(); this.Unknown_58h = reader.ReadUInt32(); this.Unknown_5Ch = reader.ReadUInt32(); // read reference data this.Name = reader.ReadBlockAt <string_r>( this.NamePointer // offset ); this.TextureDictionary = reader.ReadBlockAt <PgDictionary64 <TextureDX11> >( this.TextureDictionaryPointer // offset ); this.DrawableDictionary = reader.ReadBlockAt <PgDictionary64 <Drawable> >( this.DrawableDictionaryPointer // offset ); this.ParticleRuleDictionary = reader.ReadBlockAt <PgDictionary64 <ParticleRule> >( this.ParticleRuleDictionaryPointer // offset ); this.EffectRuleDictionary = reader.ReadBlockAt <PgDictionary64 <EffectRule> >( this.EmitterRuleDictionaryPointer // offset ); this.EmitterRuleDictionary = reader.ReadBlockAt <PgDictionary64 <EmitterRule> >( this.EffectRuleDictionaryPointer // offset ); }
public DrawableDictionaryWrapper_GTA5_pc(PgDictionary64 <GtaDrawable> drawableDictionary) { this.drawableDictionary = drawableDictionary; }
public TextureDictionaryWrapper_GTA5_pc(PgDictionary64 <TextureDX11> baseClass) { this.textureDictionary = baseClass; }
public BoundDictionaryWrapper_GTA5_pc(PgDictionary64 <Bound> boundDictionary) { this.boundDictionary = boundDictionary; }
public TextureDictionaryFileWrapper_GTA5_pc() { textureDictionary = new PgDictionary64 <TextureDX11>(); textureDictionary.Hashes = new SimpleList64 <uint>(); textureDictionary.Values = new ResourcePointerList64 <TextureDX11>(); }