コード例 #1
0
        /// <summary>
        /// Writes the data-block to a stream.
        /// </summary>
        public override void Write(ResourceDataWriter writer, params object[] parameters)
        {
            // update structure data
            this.PagesInfoPointer = (ulong)(this.PagesInfo != null ? this.PagesInfo.Position : 0);

            // write structure data
            writer.Write(this.VFT);
            writer.Write(this.Unknown_4h);
            writer.Write(this.PagesInfoPointer);
        }
コード例 #2
0
        /// <summary>
        /// Writes the data-block to a stream.
        /// </summary>
        public override void Write(ResourceDataWriter writer, params object[] parameters)
        {
            base.Write(writer, parameters);

            // update structure data
            this.HashesPointer = (ulong)(this.Hashes != null ? this.Hashes.Position : 0);
            this.HashesCount1 = (ushort)(this.Hashes != null ? this.Hashes.Count : 0);
            this.FiltersPointer = (ulong)(this.Filters != null ? this.Filters.Position : 0);
            this.FiltersCount1 = (ushort)(this.Filters != null ? this.Filters.Count : 0);

            // write structure data
            writer.Write(this.Unknown_10h);
            writer.Write(this.Unknown_14h);
            writer.Write(this.Unknown_18h);
            writer.Write(this.Unknown_1Ch);
            writer.Write(this.HashesPointer);
            writer.Write(this.HashesCount1);
            writer.Write(this.HashesCount2);
            writer.Write(this.Unknown_2Ch);
            writer.Write(this.FiltersPointer);
            writer.Write(this.FiltersCount1);
            writer.Write(this.FiltersCount2);
            writer.Write(this.Unknown_3Ch);
        }
コード例 #3
0
ファイル: Unknown_C_002.cs プロジェクト: isti37/gta-toolkit
        /// <summary>
        /// Writes the data-block to a stream.
        /// </summary>
        public override void Write(ResourceDataWriter writer, params object[] parameters)
        {
            // update structure data
            this.p0 = (ulong)(this.p0data != null ? this.p0data.Position : 0);
            this.p1 = (ulong)(this.p1data != null ? this.p1data.Position : 0);
            this.p2 = (ulong)(this.p2data != null ? this.p2data.Position : 0);
            //this.c2a = (ushort)(this.p2data != null ? this.p2data.Count : 0);
            this.p3 = (ulong)(this.p3data != null ? this.p3data.Position : 0);
            //this.c3a = (ushort)(this.p3data != null ? this.p3data.Count : 0);
            this.p4 = (ulong)(this.p4data != null ? this.p4data.Position : 0);
            //this.c4a = (ushort)(this.p4data != null ? this.p4data.Count : 0);
            this.p5 = (ulong)(this.p5data != null ? this.p5data.Position : 0);
            //this.c5a = (ushort)(this.p5data != null ? this.p5data.Count : 0);
            this.p6 = (ulong)(this.p6data != null ? this.p6data.Position : 0);
            //this.c6a = (ushort)(this.p6data != null ? this.p6data.Count : 0);

            // write structure data
            writer.Write(this.VFT);
            writer.Write(this.Unknown_4h);
            writer.Write(this.Unknown_8h);
            writer.Write(this.Unknown_Ch);
            writer.Write(this.p0);
            writer.Write(this.Unknown_18h);
            writer.Write(this.Unknown_1Ch);
            writer.Write(this.p1);
            writer.Write(this.Unknown_28h);
            writer.Write(this.Unknown_2Ch);
            writer.Write(this.Unknown_30h);
            writer.Write(this.Unknown_34h);
            writer.Write(this.Unknown_38h);
            writer.Write(this.Unknown_3Ch);
            writer.Write(this.Unknown_40h);
            writer.Write(this.Unknown_44h);
            writer.Write(this.Unknown_48h);
            writer.Write(this.Unknown_4Ch);
            writer.Write(this.Unknown_50h);
            writer.Write(this.Unknown_54h);
            writer.Write(this.Unknown_58h);
            writer.Write(this.Unknown_5Ch);
            writer.Write(this.Unknown_60h);
            writer.Write(this.Unknown_64h);
            writer.Write(this.Unknown_68h);
            writer.Write(this.Unknown_6Ch);
            writer.Write(this.Unknown_70h);
            writer.Write(this.Unknown_74h);
            writer.Write(this.Unknown_78h);
            writer.Write(this.Unknown_7Ch);
            writer.Write(this.p2);
            writer.Write(this.c2a);
            writer.Write(this.c2b);
            writer.Write(this.Unknown_8Ch);
            writer.Write(this.p3);
            writer.Write(this.c3a);
            writer.Write(this.c3b);
            writer.Write(this.Unknown_9Ch);
            writer.Write(this.Unknown_A0h);
            writer.Write(this.Unknown_A4h);
            writer.Write(this.Unknown_A8h);
            writer.Write(this.Unknown_ACh);
            writer.Write(this.p4);
            writer.Write(this.c4a);
            writer.Write(this.c4b);
            writer.Write(this.Unknown_BCh);
            writer.Write(this.p5);
            writer.Write(this.c5a);
            writer.Write(this.c5b);
            writer.Write(this.Unknown_CCh);
            writer.Write(this.Unknown_D0h);
            writer.Write(this.Unknown_D4h);
            writer.Write(this.Unknown_D8h);
            writer.Write(this.Unknown_DCh);
            writer.Write(this.p6);
            writer.Write(this.c6a);
            writer.Write(this.c6b);
            writer.Write(this.Unknown_ECh);
        }
コード例 #4
0
ファイル: Unknown_C_004.cs プロジェクト: isti37/gta-toolkit
        /// <summary>
        /// Writes the data-block to a stream.
        /// </summary>
        public override void Write(ResourceDataWriter writer, params object[] parameters)
        {
            // update structure data
            this.p0 = (ulong)(this.p0data != null ? this.p0data.Position : 0);
            //this.c0a = (ushort)(this.p0data != null ? this.p0data.Count : 0);
            this.p1 = (ulong)(this.p1data != null ? this.p1data.Position : 0);
            //this.c1a = (ushort)(this.p1data != null ? this.p1data.Count : 0);
            this.p444 = (ulong)(this.p444data != null ? this.p444data.Position : 0);
            //this.c444a = (ushort)(this.p444data != null ? this.p444data.Count : 0);
            this.p2 = (ulong)(this.p2data != null ? this.p2data.Position : 0);
            //this.c2a = (ushort)(this.p2data != null ? this.p2data.Count : 0);
            this.p3 = (ulong)(this.p3data != null ? this.p3data.Position : 0);
            this.p4 = (ulong)(this.p4data != null ? this.p4data.Position : 0);
            //this.c4a = (ushort)(this.p4data != null ? this.p4data.Count : 0);

            // write structure data
            writer.Write(this.VFT);
            writer.Write(this.Unknown_4h);
            writer.Write(this.Unknown_8h);
            writer.Write(this.Unknown_Ch);
            writer.Write(this.Unknown_10h);
            writer.Write(this.Unknown_14h);
            writer.Write(this.Unknown_18h);
            writer.Write(this.Unknown_1Ch);
            writer.Write(this.Unknown_20h);
            writer.Write(this.Unknown_24h);
            writer.Write(this.Unknown_28h);
            writer.Write(this.Unknown_2Ch);
            writer.Write(this.Unknown_30h);
            writer.Write(this.Unknown_34h);
            writer.Write(this.Unknown_38h);
            writer.Write(this.Unknown_3Ch);
            writer.Write(this.Unknown_40h);
            writer.Write(this.Unknown_44h);
            writer.Write(this.Unknown_48h);
            writer.Write(this.Unknown_4Ch);
            writer.Write(this.Unknown_50h);
            writer.Write(this.Unknown_54h);
            writer.Write(this.Unknown_58h);
            writer.Write(this.Unknown_5Ch);
            writer.Write(this.Unknown_60h);
            writer.Write(this.Unknown_64h);
            writer.Write(this.Unknown_68h);
            writer.Write(this.Unknown_6Ch);
            writer.Write(this.p0);
            writer.Write(this.c0a);
            writer.Write(this.c0b);
            writer.Write(this.Unknown_7Ch);
            writer.Write(this.p1);
            writer.Write(this.c1a);
            writer.Write(this.c1b);
            writer.Write(this.Unknown_8Ch);
            writer.Write(this.Unknown_90h);
            writer.Write(this.Unknown_94h);
            writer.Write(this.Unknown_98h);
            writer.Write(this.Unknown_9Ch);
            writer.Write(this.Unknown_A0h);
            writer.Write(this.Unknown_A4h);
            writer.Write(this.Unknown_A8h);
            writer.Write(this.Unknown_ACh);
            writer.Write(this.Unknown_B0h);
            writer.Write(this.Unknown_B4h);
            writer.Write(this.Unknown_B8h);
            writer.Write(this.Unknown_BCh);
            writer.Write(this.Unknown_C0h);
            writer.Write(this.Unknown_C4h);
            writer.Write(this.Unknown_C8h);
            writer.Write(this.Unknown_CCh);
            writer.Write(this.Unknown_D0h);
            writer.Write(this.Unknown_D4h);
            writer.Write(this.Unknown_D8h);
            writer.Write(this.Unknown_DCh);
            writer.Write(this.Unknown_E0h);
            writer.Write(this.Unknown_E4h);
            writer.Write(this.Unknown_E8h);
            writer.Write(this.Unknown_ECh);
            writer.Write(this.Unknown_F0h);
            writer.Write(this.Unknown_F4h);
            writer.Write(this.Unknown_F8h);
            writer.Write(this.Unknown_FCh);
            writer.Write(this.p444);
            writer.Write(this.c444a);
            writer.Write(this.c444b);
            writer.Write(this.Unknown_10Ch);
            writer.Write(this.p2);
            writer.Write(this.c2a);
            writer.Write(this.c2b);
            writer.Write(this.Unknown_11Ch);
            writer.Write(this.Unknown_120h);
            writer.Write(this.Unknown_124h);
            writer.Write(this.Unknown_128h);
            writer.Write(this.Unknown_12Ch);
            writer.Write(this.p3);
            writer.Write(this.Unknown_138h);
            writer.Write(this.Unknown_13Ch);
            writer.Write(this.p4);
            writer.Write(this.c4a);
            writer.Write(this.c4b);
            writer.Write(this.Unknown_14Ch);
            writer.Write(this.Unknown_150h);
            writer.Write(this.Unknown_154h);
            writer.Write(this.Unknown_158h);
            writer.Write(this.Unknown_15Ch);
            writer.Write(this.Unknown_160h);
            writer.Write(this.Unknown_164h);
            writer.Write(this.Unknown_168h);
            writer.Write(this.Unknown_16Ch);
            writer.Write(this.Unknown_170h);
            writer.Write(this.Unknown_174h);
            writer.Write(this.Unknown_178h);
            writer.Write(this.Unknown_17Ch);
        }
コード例 #5
0
ファイル: Cloth_GTA5_pc.cs プロジェクト: isti37/gta-toolkit
        /// <summary>
        /// Writes the data-block to a stream.
        /// </summary>
        public override void Write(ResourceDataWriter writer, params object[] parameters)
        {
            // update structure data
            this.p0 = (ulong)(this.p0_data != null ? this.p0_data.Position : 0);
            //this.c0a = (ushort)(this.p0_data != null ? this.p0_data.Count : 0);
            this.p1 = (ulong)(this.p1_data != null ? this.p1_data.Position : 0);
            this.p2 = (ulong)(this.Bound != null ? this.Bound.Position : 0);
            this.p3 = (ulong)(this.p3_data != null ? this.p3_data.Position : 0);
            //this.c3a = (ushort)(this.p3_data != null ? this.p3_data.Count : 0);
            this.p4 = (ulong)(this.p4_data != null ? this.p4_data.Position : 0);
            //this.c4a = (ushort)(this.p4_data != null ? this.p4_data.Count : 0);

            // write structure data
            writer.Write(this.VFT);
            writer.Write(this.Unknown_4h);
            writer.Write(this.Unknown_8h);
            writer.Write(this.Unknown_Ch);
            writer.Write(this.p0);
            writer.Write(this.c0a);
            writer.Write(this.c0b);
            writer.Write(this.Unknown_1Ch);
            writer.Write(this.p1);
            writer.Write(this.p2);
            writer.Write(this.p3);
            writer.Write(this.c3a);
            writer.Write(this.c3b);
            writer.Write(this.Unknown_3Ch);
            writer.Write(this.Unknown_40h);
            writer.Write(this.Unknown_44h);
            writer.Write(this.Unknown_48h);
            writer.Write(this.Unknown_4Ch);
            writer.Write(this.Unknown_50h);
            writer.Write(this.Unknown_54h);
            writer.Write(this.Unknown_58h);
            writer.Write(this.Unknown_5Ch);
            writer.Write(this.Unknown_60h);
            writer.Write(this.Unknown_64h);
            writer.Write(this.Unknown_68h);
            writer.Write(this.Unknown_6Ch);
            writer.Write(this.Unknown_70h);
            writer.Write(this.Unknown_74h);
            writer.Write(this.Unknown_78h);
            writer.Write(this.Unknown_7Ch);
            writer.Write(this.Unknown_80h);
            writer.Write(this.Unknown_84h);
            writer.Write(this.Unknown_88h);
            writer.Write(this.Unknown_8Ch);
            writer.Write(this.p4);
            writer.Write(this.c4a);
            writer.Write(this.c4b);
            writer.Write(this.Unknown_9Ch);
            writer.Write(this.Unknown_A0h);
            writer.Write(this.Unknown_A4h);
            writer.Write(this.Unknown_A8h);
            writer.Write(this.Unknown_ACh);
            writer.Write(this.Unknown_B0h);
            writer.Write(this.Unknown_B4h);
            writer.Write(this.Unknown_B8h);
            writer.Write(this.Unknown_BCh);
            writer.Write(this.Unknown_C0h);
            writer.Write(this.Unknown_C4h);
            writer.Write(this.Unknown_C8h);
            writer.Write(this.Unknown_CCh);
        }
コード例 #6
0
ファイル: ResourceBlock.cs プロジェクト: isti37/gta-toolkit
 /// <summary>
 /// Writes the data block.
 /// </summary>
 public abstract void Write(ResourceDataWriter writer, params object[] parameters);
コード例 #7
0
ファイル: Filter_GTA5_pc.cs プロジェクト: isti37/gta-toolkit
        /// <summary>
        /// Writes the data-block to a stream.
        /// </summary>
        public override void Write(ResourceDataWriter writer, params object[] parameters)
        {
            // update structure data
            this.p1 = (ulong)(this.p1_data != null ? this.p1_data.Position : 0);
            //this.c1a = (ushort)(this.p1_data != null ? this.p1_data.Count : 0);
            this.p2 = (ulong)(this.p2_data != null ? this.p2_data.Position : 0);
            //this.c2a = (ushort)(this.p2_data != null ? this.p2_data.Count : 0);

            // write structure data
            writer.Write(this.VFT);
            writer.Write(this.Unknown_4h);
            writer.Write(this.Unknown_8h);
            writer.Write(this.Unknown_Ch);
            writer.Write(this.Unknown_10h);
            writer.Write(this.Unknown_14h);
            writer.Write(this.p1);
            writer.Write(this.c1a);
            writer.Write(this.c1b);
            writer.Write(this.Unknown_24h);
            writer.Write(this.p2);
            writer.Write(this.c2a);
            writer.Write(this.c2b);
            writer.Write(this.Unknown_34h);
            writer.Write(this.Unknown_38h);
            writer.Write(this.Unknown_3Ch);
        }
コード例 #8
0
 /// <summary>
 /// Writes the data block.
 /// </summary>
 public abstract void Write(ResourceDataWriter writer, params object[] parameters);