aboutsummaryrefslogtreecommitdiff
path: root/assets/blender/mbb/prellbock.uv.png
diff options
context:
space:
mode:
Diffstat (limited to 'assets/blender/mbb/prellbock.uv.png')
0 files changed, 0 insertions, 0 deletions
ater version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef MAPGEN_MATH_HEADER #define MAPGEN_MATH_HEADER #include "mapgen.h" #include "mapgen_v7.h" #include "json/json.h" struct MapgenMathParams : public MapgenV7Params { MapgenMathParams() { } Json::Value params; bool readParams(Settings *settings); void writeParams(Settings *settings); }; class MapgenMath : public MapgenV7 { public: MapgenMathParams * mg_params; MapgenMath(int mapgenid, MapgenMathParams *mg_params, EmergeManager *emerge); ~MapgenMath(); int generateTerrain(); int getGroundLevelAtPoint(v2s16 p); bool invert; double size; double scale; v3f center; int iterations; double distance; double (*func)(double, double, double, double, int); }; struct MapgenFactoryMath : public MapgenFactory { Mapgen *createMapgen(int mgid, MapgenParams *params, EmergeManager *emerge) { return new MapgenMath(mgid, (MapgenMathParams *)params, emerge); }; MapgenParams *createMapgenParams() { return new MapgenMathParams(); }; }; #endif