diff options
author | kwolekr <kwolekr@minetest.net> | 2015-03-31 23:27:19 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-03-31 23:27:58 -0400 |
commit | 337e79c656a12bcf0dac4b25d5f0e021188e383a (patch) | |
tree | a8c15908fd5c2fe6e96cbe0324b664e201c58989 /src/mg_schematic.h | |
parent | d1d5618bb829127d8e138f354bf5a4f23852df59 (diff) | |
download | minetest-337e79c656a12bcf0dac4b25d5f0e021188e383a.tar.gz minetest-337e79c656a12bcf0dac4b25d5f0e021188e383a.tar.bz2 minetest-337e79c656a12bcf0dac4b25d5f0e021188e383a.zip |
ObjDefManager, Mapgen SAPI: Huge refactoring
- General code cleanup
- Unified object creation and loading
- Specifying objects in APIs is now orthogonal (i.e. anything can take an ID,
name string, or the raw table definition (and automatically registers if present
Diffstat (limited to 'src/mg_schematic.h')
-rw-r--r-- | src/mg_schematic.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mg_schematic.h b/src/mg_schematic.h index 4a85f69a6..30bd0e4fd 100644 --- a/src/mg_schematic.h +++ b/src/mg_schematic.h @@ -41,6 +41,11 @@ class NodeResolver; #define MTSCHEM_PROB_NEVER 0x00 #define MTSCHEM_PROB_ALWAYS 0xFF +enum SchematicType +{ + SCHEMATIC_NORMAL, +}; + class Schematic : public ObjDef, public NodeResolver { public: @@ -83,7 +88,7 @@ public: return "schematic"; } - Schematic *create(int type) + static Schematic *create(SchematicType type) { return new Schematic; } |