mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Rework Settings to support arbitrary hierarchies (#11352)
This commit is contained in:
parent
cec0dfcbbd
commit
c60a146e22
7 changed files with 164 additions and 71 deletions
|
@ -20,8 +20,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include "settings.h"
|
||||
|
||||
class Settings;
|
||||
struct NoiseParams;
|
||||
struct MapgenParams;
|
||||
|
||||
|
@ -70,6 +70,8 @@ public:
|
|||
|
||||
private:
|
||||
std::string m_map_meta_path;
|
||||
// TODO: Rename to "m_settings"
|
||||
|
||||
SettingsHierarchy m_hierarchy;
|
||||
Settings *m_defaults;
|
||||
Settings *m_map_settings;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue