mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Lua on each mapgen thread (#13092)
This commit is contained in:
parent
d4b107e2e8
commit
3cac17d23e
32 changed files with 1329 additions and 193 deletions
|
@ -107,6 +107,7 @@ public:
|
|||
|
||||
u32 gen_notify_on;
|
||||
const std::set<u32> *gen_notify_on_deco_ids; // shared
|
||||
const std::set<std::string> *gen_notify_on_custom; // shared
|
||||
|
||||
BiomeGen *biomegen;
|
||||
BiomeManager *biomemgr;
|
||||
|
@ -114,6 +115,11 @@ public:
|
|||
DecorationManager *decomgr;
|
||||
SchematicManager *schemmgr;
|
||||
|
||||
inline GenerateNotifier createNotifier() const {
|
||||
return GenerateNotifier(gen_notify_on, gen_notify_on_deco_ids,
|
||||
gen_notify_on_custom);
|
||||
}
|
||||
|
||||
private:
|
||||
EmergeParams(EmergeManager *parent, const BiomeGen *biomegen,
|
||||
const BiomeManager *biomemgr,
|
||||
|
@ -134,6 +140,7 @@ public:
|
|||
// Generation Notify
|
||||
u32 gen_notify_on = 0;
|
||||
std::set<u32> gen_notify_on_deco_ids;
|
||||
std::set<std::string> gen_notify_on_custom;
|
||||
|
||||
// Parameters passed to mapgens owned by ServerMap
|
||||
// TODO(hmmmm): Remove this after mapgen helper methods using them
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue