mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-16 18:01:40 +00:00
Allow ObjDefManager instances to be cloned
This commit is contained in:
parent
d1c6cc72cc
commit
2062c80e21
13 changed files with 370 additions and 5 deletions
|
@ -42,6 +42,8 @@ enum BiomeType {
|
|||
|
||||
class Biome : public ObjDef, public NodeResolver {
|
||||
public:
|
||||
ObjDef *clone() const;
|
||||
|
||||
u32 flags;
|
||||
|
||||
content_t c_top;
|
||||
|
@ -191,6 +193,8 @@ public:
|
|||
BiomeManager(Server *server);
|
||||
virtual ~BiomeManager() = default;
|
||||
|
||||
BiomeManager *clone() const;
|
||||
|
||||
const char *getObjectTitle() const
|
||||
{
|
||||
return "biome";
|
||||
|
@ -232,6 +236,8 @@ public:
|
|||
Biome *getBiomeFromNoiseOriginal(float heat, float humidity, v3s16 pos);
|
||||
|
||||
private:
|
||||
BiomeManager() {};
|
||||
|
||||
Server *m_server;
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue