Minetest 5.10.0-dev
 
Loading...
Searching...
No Matches
mapgen_singlenode.h
Go to the documentation of this file.
1/*
2Minetest
3Copyright (C) 2013-2018 celeron55, Perttu Ahola <celeron55@gmail.com>
4Copyright (C) 2013-2018 kwolekr, Ryan Kwolek <kwolekr@minetest.net>
5Copyright (C) 2015-2018 paramat
6
7This program is free software; you can redistribute it and/or modify
8it under the terms of the GNU Lesser General Public License as published by
9the Free Software Foundation; either version 2.1 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU Lesser General Public License for more details.
16
17You should have received a copy of the GNU Lesser General Public License along
18with this program; if not, write to the Free Software Foundation, Inc.,
1951 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20*/
21
22#pragma once
23
24#include "mapgen.h"
25
27{
30
31 void readParams(const Settings *settings) {}
32 void writeParams(Settings *settings) const {}
33};
34
36{
37public:
40
42 ~MapgenSinglenode() = default;
43
44 virtual MapgenType getType() const { return MAPGEN_SINGLENODE; }
45
46 void makeChunk(BlockMakeData *data);
48};
Definition emerge.h:100
Definition mapgen_singlenode.h:36
MapgenSinglenode(MapgenParams *params, EmergeParams *emerge)
Definition mapgen_singlenode.cpp:32
~MapgenSinglenode()=default
content_t c_node
Definition mapgen_singlenode.h:38
void makeChunk(BlockMakeData *data)
Definition mapgen_singlenode.cpp:46
u8 set_light
Definition mapgen_singlenode.h:39
int getSpawnLevelAtPoint(v2s16 p)
Definition mapgen_singlenode.cpp:88
virtual MapgenType getType() const
Definition mapgen_singlenode.h:44
Definition mapgen.h:168
Definition settings.h:124
core::vector2d< s16 > v2s16
Definition irr_v2d.h:27
static LightingParams params
Definition light.cpp:40
MapgenType
Definition mapgen.h:117
@ MAPGEN_SINGLENODE
Definition mapgen.h:124
u16 content_t
Definition mapnode.h:37
Definition emerge.h:52
Definition mapgen.h:129
Definition mapgen_singlenode.h:27
~MapgenSinglenodeParams()=default
MapgenSinglenodeParams()=default
void writeParams(Settings *settings) const
Definition mapgen_singlenode.h:32
void readParams(const Settings *settings)
Definition mapgen_singlenode.h:31
static std::string p(std::string path)
Definition test_filesys.cpp:66