mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-26 18:21:04 +00: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:
parent
9cb3219f34
commit
cde2a7f6f2
23 changed files with 222 additions and 39 deletions
|
@ -55,8 +55,6 @@ enum BiomeV6Type
|
|||
|
||||
|
||||
struct MapgenV6Params : public MapgenParams {
|
||||
u32 spflags = MGV6_JUNGLES | MGV6_SNOWBIOMES | MGV6_TREES |
|
||||
MGV6_BIOMEBLEND | MGV6_MUDFLOW;
|
||||
float freq_desert = 0.45f;
|
||||
float freq_beach = 0.15f;
|
||||
s16 dungeon_ymin = -31000;
|
||||
|
@ -79,6 +77,7 @@ struct MapgenV6Params : public MapgenParams {
|
|||
|
||||
void readParams(const Settings *settings);
|
||||
void writeParams(Settings *settings) const;
|
||||
void setDefaultSettings(Settings *settings);
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue