Luanti
5.11.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
9
struct
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
16
class
ScriptApiMapgen
:
virtual
public
ScriptApiBase
17
{
18
public
:
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
};
ScriptApiBase
Definition
s_base.h:64
ScriptApiMapgen
Definition
s_mapgen.h:17
ScriptApiMapgen::on_generated
void on_generated(BlockMakeData *bmdata, u32 seed)
Definition
s_mapgen.cpp:33
ScriptApiMapgen::on_shutdown
void on_shutdown()
Definition
s_mapgen.cpp:22
ScriptApiMapgen::on_mods_loaded
void on_mods_loaded()
Definition
s_mapgen.cpp:11
s_base.h
BlockMakeData
Definition
emerge.h:37
script
cpp_api
s_mapgen.h
Generated on Sun Dec 1 2024 10:42:56 for Luanti by
1.11.0