]> git.lizzy.rs Git - dungeon_game.git/blobdiff - plugins/inventory/inventory.h
Add on_create callback for items
[dungeon_game.git] / plugins / inventory / inventory.h
index 4b13f94fbf2d19953098eabdb86be5be69b66b8a..437ffb646d427c1cc071a3d8b212efbc043a116f 100644 (file)
@@ -16,6 +16,7 @@ struct item
 
        bool (*on_use)(struct itemstack *stack);
        void (*on_destroy)(struct itemstack *stack);
+       void (*on_create)(struct itemstack *stack);
 };
 
 struct inventory