summaryrefslogtreecommitdiff
path: root/src/mg_biome.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mg_biome.h')
-rw-r--r--src/mg_biome.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mg_biome.h b/src/mg_biome.h
index 3648c085d..4e7e3fd7e 100644
--- a/src/mg_biome.h
+++ b/src/mg_biome.h
@@ -33,7 +33,7 @@ enum BiomeType
BIOME_TYPE_FLAT
};
-class Biome : public GenElement, public NodeResolver {
+class Biome : public ObjDef, public NodeResolver {
public:
u32 flags;
@@ -56,14 +56,18 @@ public:
virtual void resolveNodeNames(NodeResolveInfo *nri);
};
-class BiomeManager : public GenElementManager {
+class BiomeManager : public ObjDefManager {
public:
- static const char *ELEMENT_TITLE;
- static const size_t ELEMENT_LIMIT = 0x100;
+ static const char *OBJECT_TITLE;
BiomeManager(IGameDef *gamedef);
~BiomeManager();
+ const char *getObjectTitle() const
+ {
+ return "biome";
+ }
+
Biome *create(int btt)
{
return new Biome;