Ejemplo n.º 1
0
        /// <summary>
        /// Reads this field using the supplied guerilla binary reader.
        /// </summary>
        /// <param name="reader">The reader.</param>
        internal override void Read(GuerillaBinaryReader reader)
        {
            //Read
            base.Read(reader);

            //Goto
            reader.BaseStream.Seek(DefinitionAddress - Guerilla.BaseAddress, System.IO.SeekOrigin.Begin);

            //Read Fields
            getBlockProcedure           = reader.ReadInt32();
            isValidSourceBlockProcedure = reader.ReadInt32();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Reads this field using the supplied guerilla binary reader.
        /// </summary>
        /// <param name="reader">The reader.</param>
        internal override void Read(GuerillaBinaryReader reader)
        {
            //Read
            base.Read(reader);

            //Goto
            reader.BaseStream.Seek(DefinitionAddress - Guerilla.BaseAddress, System.IO.SeekOrigin.Begin);

            //Read fields
            Flags            = reader.ReadInt32();
            GroupTag         = reader.ReadTag();
            GroupTagsAddress = reader.ReadInt32();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Reads this field using the supplied guerilla binary reader.
        /// </summary>
        /// <param name="reader">The reader.</param>
        internal override void Read(GuerillaBinaryReader reader)
        {
            //Read
            base.Read(reader);

            //Goto
            reader.BaseStream.Seek(DefinitionAddress - Guerilla.BaseAddress, System.IO.SeekOrigin.Begin);

            //Read fields
            nameAddress = reader.ReadInt32();
            groupTag    = reader.ReadTag();
            int displayNameAddress = reader.ReadInt32();

            blockDefinitionAddress = reader.ReadInt32();

            //Read strings
            name        = reader.ReadLocalizedString(nameAddress);
            displayName = reader.ReadLocalizedString(displayNameAddress);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Reads the field using the supplied guerilla binary reader.
        /// </summary>
        /// <param name="reader">The reader.</param>
        internal override void Read(GuerillaBinaryReader reader)
        {
            //Read
            base.Read(reader);

            //Goto
            reader.BaseStream.Seek(DefinitionAddress - Guerilla.BaseAddress, System.IO.SeekOrigin.Begin);

            //Read Fields
            int definitionNameAddress = reader.ReadInt32();

            flags        = reader.ReadInt32();
            alignmentBit = reader.ReadInt32();
            maximumSize  = reader.ReadInt32();
            int maximumSizeStringAddress = reader.ReadInt32();

            //Read strings
            definitionName    = reader.ReadLocalizedString(definitionNameAddress);
            maximumSizeString = reader.ReadLocalizedString(maximumSizeStringAddress);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Reads the field using the supplied guerilla binary reader.
        /// </summary>
        /// <param name="reader">The reader.</param>
        internal override void Read(GuerillaBinaryReader reader)
        {
            //Read
            base.Read(reader);

            //Goto
            reader.BaseStream.Seek(DefinitionAddress - Guerilla.BaseAddress, System.IO.SeekOrigin.Begin);

            //Read fields
            optionCount = reader.ReadInt32();
            int optionsAddress = reader.ReadInt32();

            flags = reader.ReadInt32();

            //Prepare
            reader.BaseStream.Seek(optionsAddress - Guerilla.BaseAddress, System.IO.SeekOrigin.Begin);
            int[] addresses = new int[optionCount];
            for (int i = 0; i < optionCount; i++)
            {
                addresses[i] = reader.ReadInt32();
            }

            //Loop
            options = new string[optionCount];
            for (int i = 0; i < optionCount; i++)
            {
                if (addresses[i] != 0)
                {
                    options[i] = reader.ReadLocalizedString(addresses[i]);
                }
                else
                {
                    options[i] = $"o.O {i}";
                }
            }
        }