HaloMap.RawData.BSPModel.ClustersPVS.GetClustersPVSInfo C# (CSharp) Method

GetClustersPVSInfo() public static method

The get clusters pvs info.
public static GetClustersPVSInfo ( Meta &meta ) : ClusterPVS[]
meta HaloMap.Meta.Meta The meta.
return ClusterPVS[]
            public static ClusterPVS[] GetClustersPVSInfo(ref Meta meta)
            {
                BinaryReader BR = new BinaryReader(meta.MS);
                BR.BaseStream.Position = 172;
                int clustercount = BR.ReadInt32();

                BR.BaseStream.Position = 100;
                int tempc = BR.ReadInt32();
                int tempr = BR.ReadInt32() - meta.magic - meta.offset;
                BR.BaseStream.Position = tempr;
                ClusterPVS[] tempclusters = new ClusterPVS[clustercount];
                for (int x = 0; x < clustercount; x++)
                {
                    tempclusters[x] = new ClusterPVS(ref BR, clustercount);
                }

                return tempclusters;
            }
BSPModel.ClustersPVS