LSLib.Granny.GR2.WritableSection.WriteSectionRelocations C# (CSharp) Method

WriteSectionRelocations() private method

private WriteSectionRelocations ( WritableSection section ) : void
section WritableSection
return void
        internal void WriteSectionRelocations(WritableSection section)
        {
            section.Header.numRelocations = (UInt32)section.Fixups.Count;
            section.Header.relocationsOffset = (UInt32)MainStream.Position;

            foreach (var fixup in section.Fixups)
            {
                Writer.Write(fixup.Key);
                WriteSectionReference(GR2.ObjectOffsets[fixup.Value]);
            }
        }