Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
mapgen_singlenode.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2013-2018 celeron55, Perttu Ahola <celeron55@gmail.com>
4// Copyright (C) 2013-2018 kwolekr, Ryan Kwolek <kwolekr@minetest.net>
5// Copyright (C) 2015-2018 paramat
6
7#pragma once
8
9#include "mapgen.h"
10
19
21{
22public:
25
27 ~MapgenSinglenode() = default;
28
29 virtual MapgenType getType() const { return MAPGEN_SINGLENODE; }
30
31 void makeChunk(BlockMakeData *data);
33};
Definition emerge.h:85
Definition mapgen_singlenode.h:21
MapgenSinglenode(MapgenParams *params, EmergeParams *emerge)
Definition mapgen_singlenode.cpp:17
~MapgenSinglenode()=default
content_t c_node
Definition mapgen_singlenode.h:23
void makeChunk(BlockMakeData *data)
Definition mapgen_singlenode.cpp:31
u8 set_light
Definition mapgen_singlenode.h:24
int getSpawnLevelAtPoint(v2s16 p)
Definition mapgen_singlenode.cpp:73
virtual MapgenType getType() const
Definition mapgen_singlenode.h:29
Definition mapgen.h:153
Definition settings.h:109
static const char * settings[]
Definition fontengine.cpp:27
core::vector2d< s16 > v2s16
Definition irr_v2d.h:12
MapgenType
Definition mapgen.h:102
@ MAPGEN_SINGLENODE
Definition mapgen.h:109
u16 content_t
Definition mapnode.h:22
Definition emerge.h:37
Definition mapgen.h:114
Definition mapgen_singlenode.h:12
~MapgenSinglenodeParams()=default
MapgenSinglenodeParams()=default
void writeParams(Settings *settings) const
Definition mapgen_singlenode.h:17
void readParams(const Settings *settings)
Definition mapgen_singlenode.h:16
static std::string p(std::string path)
Definition test_filesys.cpp:53