Beispiel #1
0
        public void Generate()
        {
            m_terrain.Generate(64, 64);
            m_room.Generate(64, 64);
            m_block.Generate(64, 64);
            m_decal.Generate(64, 64);

            m_terrain.GenerateRoad();

            m_block.DeleteBlockAtIllegalPostion(m_terrain.Grid);
            m_decal.DeleteDecalAtIllegalTerrainPostion(m_terrain.Grid);
            m_decal.DeleteDecalAtIllegalBlockPostion(m_block.Grid);
        }
        public override void Generate()
        {
            base.Generate();
            m_terrain.Generate(m_numCols, m_numRows);

            /*CPerlinMap perlin = m_terrain.PerlinMap;
             * for (int x = 0; x < m_numCols; x++) {
             *      for (int z = 0; z < m_numRows; z++) {
             *              int index = GetTypeAtHeight(perlin[x, z]);
             *          int type = GetTypeByIndex(index);
             * m_grid.FillData(x, z, type, GetAsset(index), GetAssetWalkable(index));
             * }
             * }*/
        }