From 1cb6ea6346f568cd068380c5af52f7be269e3490 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Wed, 29 Oct 2014 01:54:11 -0400 Subject: Refactor decoration-related code Split up ModApiMapgen::l_register_decoration() Define and make use of CONTAINS() and ARRLEN() macros --- src/mapgen.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mapgen.h') diff --git a/src/mapgen.h b/src/mapgen.h index 01ab22730..b6efe8200 100644 --- a/src/mapgen.h +++ b/src/mapgen.h @@ -207,7 +207,7 @@ Ore *createOre(OreType type); enum DecorationType { - DECO_SIMPLE = 1, + DECO_SIMPLE, DECO_SCHEMATIC, DECO_LSYSTEM }; @@ -262,6 +262,7 @@ public: ~DecoSimple() {} + bool canPlaceDecoration(ManualMapVoxelManipulator *vm, v3s16 p); virtual void generate(Mapgen *mg, PseudoRandom *pr, s16 max_y, v3s16 p); virtual int getHeight(); virtual std::string getName(); -- cgit v1.2.3