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

ReadMODR() static private method

static private ReadMODR ( BinaryReader br, WMOGroup group, uint size ) : void
br System.IO.BinaryReader
group WMOGroup
size uint
return void
        static void ReadMODR(BinaryReader br, WMOGroup group, uint size)
        {
            // Doodad references, one 16-bit integer per doodad.
            // The numbers are indices into the doodad instance table (MODD chunk) of the WMO root file.
            // These have to be filtered to the doodad set being used in any given WMO instance.
            group.DoodadReferences = new ushort[size / 2];

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