예제 #1
0
        List <SWFlowv> Flowvs = new List <SWFlowv>(); // 2

        public MCLQSubChunk(BinaryReader reader, SMChunkFlags flag)
        {
            Range = new CRange(reader);

            switch (flag)
            {
            case SMChunkFlags.FLAG_LQ_OCEAN:
                for (int i = 0; i < 9; i++)
                {
                    for (int j = 0; j < 9; j++)
                    {
                        Verts[i, j] = new SOVert(reader);     // Ocean Vert
                    }
                }
                break;

            case SMChunkFlags.FLAG_LQ_MAGMA:
                for (int i = 0; i < 9; i++)
                {
                    for (int j = 0; j < 9; j++)
                    {
                        Verts[i, j] = new SMVert(reader);     // Magma Vert
                    }
                }
                break;

            default:
                for (int i = 0; i < 9; i++)
                {
                    for (int j = 0; j < 9; j++)
                    {
                        Verts[i, j] = new SWVert(reader);     // Water Vert
                    }
                }
                break;
            }

            SLTiles = new SLTiles(reader);
            NFlowVS = reader.ReadUInt32();

            for (int i = 0; i < 2; i++)
            {
                Flowvs.Add(new SWFlowv(reader));
            }
        }
예제 #2
0
 public SLVert(BinaryReader reader)
 {
     WaterVert = new SWVert(reader);
     OceanVert = new SOVert(reader);
     MagmaVert = new SMVert(reader);
 }