Esempio 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.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 <TextureDictionary_GTA5_pc>(
                this.TextureDictionaryPointer // offset
                );
            this.DrawableDictionary = reader.ReadBlockAt <DrawableBaseDictionary_GTA5_pc>(
                this.DrawableDictionaryPointer // offset
                );
            this.ParticleRuleDictionary = reader.ReadBlockAt <ParticleRuleDictionary_GTA5_pc>(
                this.ParticleRuleDictionaryPointer // offset
                );
            this.EmitterRuleDictionary = reader.ReadBlockAt <EmitterRuleDictionary_GTA5_pc>(
                this.EmitterRuleDictionaryPointer // offset
                );
            this.EffectRuleDictionary = reader.ReadBlockAt <EffectRuleDictionary_GTA5_pc>(
                this.EffectRuleDictionaryPointer // offset
                );
        }
Esempio n. 2
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.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<TextureDictionary_GTA5_pc>(
                this.TextureDictionaryPointer // offset
            );
            this.DrawableDictionary = reader.ReadBlockAt<DrawableBaseDictionary_GTA5_pc>(
                this.DrawableDictionaryPointer // offset
            );
            this.ParticleRuleDictionary = reader.ReadBlockAt<ParticleRuleDictionary_GTA5_pc>(
                this.ParticleRuleDictionaryPointer // offset
            );
            this.EmitterRuleDictionary = reader.ReadBlockAt<EmitterRuleDictionary_GTA5_pc>(
                this.EmitterRuleDictionaryPointer // offset
            );
            this.EffectRuleDictionary = reader.ReadBlockAt<EffectRuleDictionary_GTA5_pc>(
                this.EffectRuleDictionaryPointer // offset
            );
        }