Пример #1
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.VFT         = reader.ReadUInt32();
            this.Unknown_4h  = reader.ReadUInt32();
            this.Unknown_8h  = reader.ReadUInt32();
            this.Unknown_Ch  = reader.ReadUInt32();
            this.Unknown_10h = reader.ReadUInt32();
            this.Unknown_14h = reader.ReadUInt32();
            this.p1          = reader.ReadUInt64();
            this.Unknown_20h = reader.ReadUInt32();
            this.Unknown_24h = reader.ReadUInt32();
            this.Unknown_28h = reader.ReadUInt32();
            this.Unknown_2Ch = reader.ReadUInt32();
            this.p2          = reader.ReadUInt64();
            this.p3          = reader.ReadUInt64();
            this.p4          = reader.ReadUInt64();
            this.p5          = reader.ReadUInt64();
            this.Unknown_50h = reader.ReadUInt32();
            this.Unknown_54h = reader.ReadUInt32();
            this.Unknown_58h = reader.ReadUInt32();
            this.Unknown_5Ch = reader.ReadUInt32();
            this.Unknown_60h = reader.ReadUInt32();
            this.Unknown_64h = reader.ReadUInt32();
            this.Unknown_68h = reader.ReadUInt32();
            this.Unknown_6Ch = reader.ReadUInt32();

            // read reference data
            this.p1data = reader.ReadBlockAt <Unknown_P_005>(
                this.p1 // offset
                );
            this.p2data = reader.ReadBlockAt <string_r>(
                this.p2 // offset
                );
            this.p3data = reader.ReadBlockAt <string_r>(
                this.p3 // offset
                );
            this.EmitterRule = reader.ReadBlockAt <EmitterRule>(
                this.p4 // offset
                );
            this.ParticleRule = reader.ReadBlockAt <ParticleRule>(
                this.p5 // offset
                );
        }
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.VFT          = reader.ReadUInt32();
            this.Unknown_4h   = reader.ReadUInt32();
            this.Unknown_8h   = reader.ReadUInt32();
            this.Unknown_Ch   = reader.ReadUInt32();
            this.Unknown_10h  = reader.ReadUInt32();
            this.Unknown_14h  = reader.ReadUInt32();
            this.Unknown_18h  = reader.ReadUInt32();
            this.Unknown_1Ch  = reader.ReadUInt32();
            this.NamePointer  = reader.ReadUInt64();
            this.Unknown_28h  = reader.ReadUInt32();
            this.Unknown_2Ch  = reader.ReadUInt32();
            this.Unknown_30h  = reader.ReadUInt32();
            this.Unknown_34h  = reader.ReadUInt32();
            this.p3           = reader.ReadUInt64();
            this.c3a          = reader.ReadUInt16();
            this.c3b          = reader.ReadUInt16();
            this.Unknown_44h  = reader.ReadUInt32();
            this.p4           = reader.ReadUInt64();
            this.Unknown_50h  = reader.ReadUInt32();
            this.Unknown_54h  = reader.ReadUInt32();
            this.Unknown_58h  = reader.ReadUInt32();
            this.Unknown_5Ch  = reader.ReadUInt32();
            this.Unknown_60h  = reader.ReadUInt32();
            this.Unknown_64h  = reader.ReadUInt32();
            this.Unknown_68h  = reader.ReadUInt32();
            this.Unknown_6Ch  = reader.ReadUInt32();
            this.Unknown_70h  = reader.ReadUInt32();
            this.Unknown_74h  = reader.ReadUInt32();
            this.Unknown_78h  = reader.ReadUInt32();
            this.Unknown_7Ch  = reader.ReadUInt32();
            this.Unknown_80h  = reader.ReadUInt32();
            this.Unknown_84h  = reader.ReadUInt32();
            this.Unknown_88h  = reader.ReadUInt32();
            this.Unknown_8Ch  = reader.ReadUInt32();
            this.Unknown_90h  = reader.ReadUInt32();
            this.Unknown_94h  = reader.ReadUInt32();
            this.Unknown_98h  = reader.ReadUInt32();
            this.Unknown_9Ch  = reader.ReadUInt32();
            this.Unknown_A0h  = reader.ReadUInt32();
            this.Unknown_A4h  = reader.ReadUInt32();
            this.Unknown_A8h  = reader.ReadUInt32();
            this.Unknown_ACh  = reader.ReadUInt32();
            this.Unknown_B0h  = reader.ReadUInt32();
            this.Unknown_B4h  = reader.ReadUInt32();
            this.Unknown_B8h  = reader.ReadUInt32();
            this.Unknown_BCh  = reader.ReadUInt32();
            this.emb1         = reader.ReadBlock <Unknown_P_018>();
            this.emb2         = reader.ReadBlock <Unknown_P_018>();
            this.emb3         = reader.ReadBlock <Unknown_P_018>();
            this.emb4         = reader.ReadBlock <Unknown_P_018>();
            this.emb5         = reader.ReadBlock <Unknown_P_018>();
            this.pref         = reader.ReadUInt64();
            this.refcnt1      = reader.ReadUInt16();
            this.refcnt2      = reader.ReadUInt16();
            this.Unknown_39Ch = reader.ReadUInt32();
            this.Unknown_3A0h = reader.ReadUInt32();
            this.Unknown_3A4h = reader.ReadUInt32();
            this.Unknown_3A8h = reader.ReadUInt32();
            this.Unknown_3ACh = reader.ReadUInt32();
            this.Unknown_3B0h = reader.ReadUInt32();
            this.Unknown_3B4h = reader.ReadUInt32();
            this.Unknown_3B8h = reader.ReadUInt32();
            this.Unknown_3BCh = reader.ReadUInt32();

            // read reference data
            this.Name = reader.ReadBlockAt <string_r>(
                this.NamePointer // offset
                );
            this.p3data = reader.ReadBlockAt <ResourcePointerArray64 <Unknown_P_008> >(
                this.p3, // offset
                this.c3b
                );
            this.p4data = reader.ReadBlockAt <Unknown_P_005>(
                this.p4 // offset
                );
            this.refs = reader.ReadBlockAt <ResourcePointerArray64 <Unknown_P_018> >(
                this.pref, // offset
                this.refcnt2
                );
        }
Пример #3
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.VFT = reader.ReadUInt32();
            this.Unknown_4h = reader.ReadUInt32();
            this.Unknown_8h = reader.ReadUInt32();
            this.Unknown_Ch = reader.ReadUInt32();
            this.Unknown_10h = reader.ReadUInt32();
            this.Unknown_14h = reader.ReadUInt32();
            this.Unknown_18h = reader.ReadUInt32();
            this.Unknown_1Ch = reader.ReadUInt32();
            this.NamePointer = reader.ReadUInt64();
            this.Unknown_28h = reader.ReadUInt32();
            this.Unknown_2Ch = reader.ReadUInt32();
            this.Unknown_30h = reader.ReadUInt32();
            this.Unknown_34h = reader.ReadUInt32();
            this.p3 = reader.ReadUInt64();
            this.c3a = reader.ReadUInt16();
            this.c3b = reader.ReadUInt16();
            this.Unknown_44h = reader.ReadUInt32();
            this.p4 = reader.ReadUInt64();
            this.Unknown_50h = reader.ReadUInt32();
            this.Unknown_54h = reader.ReadUInt32();
            this.Unknown_58h = reader.ReadUInt32();
            this.Unknown_5Ch = reader.ReadUInt32();
            this.Unknown_60h = reader.ReadUInt32();
            this.Unknown_64h = reader.ReadUInt32();
            this.Unknown_68h = reader.ReadUInt32();
            this.Unknown_6Ch = reader.ReadUInt32();
            this.Unknown_70h = reader.ReadUInt32();
            this.Unknown_74h = reader.ReadUInt32();
            this.Unknown_78h = reader.ReadUInt32();
            this.Unknown_7Ch = reader.ReadUInt32();
            this.Unknown_80h = reader.ReadUInt32();
            this.Unknown_84h = reader.ReadUInt32();
            this.Unknown_88h = reader.ReadUInt32();
            this.Unknown_8Ch = reader.ReadUInt32();
            this.Unknown_90h = reader.ReadUInt32();
            this.Unknown_94h = reader.ReadUInt32();
            this.Unknown_98h = reader.ReadUInt32();
            this.Unknown_9Ch = reader.ReadUInt32();
            this.Unknown_A0h = reader.ReadUInt32();
            this.Unknown_A4h = reader.ReadUInt32();
            this.Unknown_A8h = reader.ReadUInt32();
            this.Unknown_ACh = reader.ReadUInt32();
            this.Unknown_B0h = reader.ReadUInt32();
            this.Unknown_B4h = reader.ReadUInt32();
            this.Unknown_B8h = reader.ReadUInt32();
            this.Unknown_BCh = reader.ReadUInt32();
            this.emb1 = reader.ReadBlock<Unknown_P_018>();
            this.emb2 = reader.ReadBlock<Unknown_P_018>();
            this.emb3 = reader.ReadBlock<Unknown_P_018>();
            this.emb4 = reader.ReadBlock<Unknown_P_018>();
            this.emb5 = reader.ReadBlock<Unknown_P_018>();
            this.pref = reader.ReadUInt64();
            this.refcnt1 = reader.ReadUInt16();
            this.refcnt2 = reader.ReadUInt16();
            this.Unknown_39Ch = reader.ReadUInt32();
            this.Unknown_3A0h = reader.ReadUInt32();
            this.Unknown_3A4h = reader.ReadUInt32();
            this.Unknown_3A8h = reader.ReadUInt32();
            this.Unknown_3ACh = reader.ReadUInt32();
            this.Unknown_3B0h = reader.ReadUInt32();
            this.Unknown_3B4h = reader.ReadUInt32();
            this.Unknown_3B8h = reader.ReadUInt32();
            this.Unknown_3BCh = reader.ReadUInt32();

            // read reference data
            this.Name = reader.ReadBlockAt<string_r>(
                this.NamePointer // offset
            );
            this.p3data = reader.ReadBlockAt<ResourcePointerArray64<Unknown_P_008>>(
                this.p3, // offset
                this.c3b
            );
            this.p4data = reader.ReadBlockAt<Unknown_P_005>(
                this.p4 // offset
            );
            this.refs = reader.ReadBlockAt<ResourcePointerArray64<Unknown_P_018>>(
                this.pref, // offset
                this.refcnt2
            );
        }