TerrainDisplay.MPQ.WMO.WMORootParser.ReadMOPV C# (CSharp) Method

ReadMOPV() static private method

static private ReadMOPV ( BinaryReader br, WMORoot wmo ) : void
br System.IO.BinaryReader
wmo WMORoot
return void
        static void ReadMOPV(BinaryReader br, WMORoot wmo)
        {
            // PortalCount of 4 x Vector3 to form a rectangle for the doorway
            uint vertexCount = wmo.Header.PortalCount*4;
            wmo.PortalVertices = new Vector3[vertexCount];

            for (var i=0; i<vertexCount; i++)
            {
                wmo.PortalVertices[i] = br.ReadVector3();
            }
        }