TerrainDisplay.MPQ.WMO.WMOGroupParser.ReadMOLR C# (CSharp) Method

ReadMOLR() static private method

static private ReadMOLR ( BinaryReader br, WMOGroup group, uint size ) : void
br System.IO.BinaryReader
group WMOGroup
size uint
return void
        static void ReadMOLR(BinaryReader br, WMOGroup group, uint size)
        {
            // Light references, one 16-bit integer per light reference.
            // This is basically a list of lights used in this WMO group,
            // the numbers are indices into the WMO root file's MOLT table.
            group.LightReferences = new ushort[size/2];

            for (int i = 0; i < group.LightReferences.Length; i++)
            {
                group.LightReferences[i] = br.ReadUInt16();
            }
        }