mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Settings: Add get_flags API for mapgen flags (mg_flags, mgv6_spflags, ...) (#9284)
Unified flags handling in C++ and Lua Settings API -> Reading only, for now. Writing can be implemented later, if needed. API function to read the currently active flags -> was impossible from Lua Co-authored-by: Wuzzy <wuzzy2@mail.ru>
This commit is contained in:
@@ -32,7 +32,6 @@ extern FlagDesc flagdesc_mapgen_flat[];
|
||||
|
||||
struct MapgenFlatParams : public MapgenParams
|
||||
{
|
||||
u32 spflags = 0;
|
||||
s16 ground_level = 8;
|
||||
s16 large_cave_depth = -33;
|
||||
u16 small_cave_num_min = 0;
|
||||
@@ -59,6 +58,7 @@ struct MapgenFlatParams : public MapgenParams
|
||||
|
||||
void readParams(const Settings *settings);
|
||||
void writeParams(Settings *settings) const;
|
||||
void setDefaultSettings(Settings *settings);
|
||||
};
|
||||
|
||||
class MapgenFlat : public MapgenBasic
|
||||
|
Reference in New Issue
Block a user