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

WriteSectionMixedMarshallingRelocations() private method

private WriteSectionMixedMarshallingRelocations ( WritableSection section ) : void
section WritableSection
return void
        internal void WriteSectionMixedMarshallingRelocations(WritableSection section)
        {
            section.Header.numMixedMarshallingData = (UInt32)section.MixedMarshalling.Count;
            section.Header.mixedMarshallingDataOffset = (UInt32)MainStream.Position;

            foreach (var marshal in section.MixedMarshalling)
            {
                Writer.Write(marshal.Count);
                Writer.Write(GR2.ObjectOffsets[marshal.Obj].Offset);
                WriteSectionReference(GR2.ObjectOffsets[marshal.Type]);
            }
        }