Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
s_mapgen.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2022 sfan5 <sfan5@live.de>
4
5#pragma once
6
7#include "cpp_api/s_base.h"
8
9struct BlockMakeData;
10
11/*
12 * Note that this is the class defining the functions called inside the emerge
13 * Lua state, not the server one.
14 */
15
16class ScriptApiMapgen : virtual public ScriptApiBase
17{
18public:
19
20 void on_mods_loaded();
21 void on_shutdown();
22
23 // Called after generating a piece of map, before writing it to the map
24 void on_generated(BlockMakeData *bmdata, u32 seed);
25};
Definition s_base.h:64
Definition s_mapgen.h:17
void on_generated(BlockMakeData *bmdata, u32 seed)
Definition s_mapgen.cpp:33
void on_shutdown()
Definition s_mapgen.cpp:22
void on_mods_loaded()
Definition s_mapgen.cpp:11
Definition emerge.h:37