]> git.lizzy.rs Git - dungeon_game.git/blobdiff - plugins/game/game.h
Add mapgen contexts
[dungeon_game.git] / plugins / game / game.h
index 21a94339eb0969bf680f1bd4ba4e4ac6e773b3d2..74fea1c0eac4030549859eba3e154854f2d424e7 100644 (file)
@@ -63,10 +63,16 @@ struct list
        struct list *next;
 };
 
+enum mg_context
+{
+       MG_CTX_CORRIDOR,
+       MG_CTX_ROOM,
+};
+
 struct generator_function
 {
        int chance;
-       void (*callback)(int x, int y);
+       void (*callback)(int x, int y, enum mg_context ctx);
 };
 
 struct input_handler