示例#1
0
    private void ReadFile()
    {
        bsp = new BSPParser(mapFile);

        string entities = bsp.GetEntities();

        Debug.Log("Map Entities: " + entities);
        vertices = bsp.GetVertices();

        //vertices = bsp.lumpData[3];
        //planes = bsp.GetPlanes();
        edges = bsp.GetEdges();
        //origFaces = bsp.GetOriginalFaces();
        faces     = bsp.GetFaces();
        surfedges = bsp.GetSurfedges();

        //brushes = bsp.GetBrushes();
        //brushSides = bsp.GetBrushSides();
        dispInfo  = bsp.GetDispInfo();
        dispVerts = bsp.GetDispVerts();

        texInfo           = bsp.GetTextureInfo();
        texData           = bsp.GetTextureData();
        texStringTable    = bsp.GetTextureStringTable();
        textureStringData = bsp.GetTextureStringData();

        staticProps = bsp.GetStaticProps();

        mapFile.Close();
    }