Ejemplo n.º 1
0
        /// <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.Unknown_18h    = reader.ReadUInt32();
            this.Unknown_1Ch    = reader.ReadUInt32();
            this.Unknown_20h    = reader.ReadUInt32();
            this.Unknown_24h    = reader.ReadUInt32();
            this.TexturePointer = reader.ReadUInt64();
            this.NamePointer    = reader.ReadUInt64();
            this.NameHash       = reader.ReadUInt32();
            this.Unknown_3Ch    = reader.ReadUInt32();

            // read reference data
            this.Texture = reader.ReadBlockAt <TextureDX11>(
                this.TexturePointer // offset
                );
            this.Name = reader.ReadBlockAt <string_r>(
                this.NamePointer // offset
                );
        }
Ejemplo n.º 2
0
 public TextureWrapper_GTA5_pc(TextureDX11 texture)
 {
     this.texture = texture;
 }
Ejemplo n.º 3
0
 public TextureWrapper_GTA5_pc()
 {
     this.texture      = new TextureDX11();
     this.texture.Data = new TextureData_GTA5_pc();
 }