diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-14 00:19:48 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:41 +0200 |
commit | abceeee92f99b84ebb79968269835a4f509bfb90 (patch) | |
tree | 669edeca68fae4eb086ac4e4c1846b55d3aa779d /src/content_inventory.h | |
parent | 5fc791ac9a15ea6f234ca2d23041c83679255746 (diff) | |
download | minetest-abceeee92f99b84ebb79968269835a4f509bfb90.tar.gz minetest-abceeee92f99b84ebb79968269835a4f509bfb90.tar.bz2 minetest-abceeee92f99b84ebb79968269835a4f509bfb90.zip |
Create framework for getting rid of global definitions of node/tool/item/whatever types
Diffstat (limited to 'src/content_inventory.h')
-rw-r--r-- | src/content_inventory.h | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/src/content_inventory.h b/src/content_inventory.h index 9fd4cb03b..0b384f15e 100644 --- a/src/content_inventory.h +++ b/src/content_inventory.h @@ -27,18 +27,26 @@ with this program; if not, write to the Free Software Foundation, Inc., class InventoryItem; class ServerActiveObject; class ServerEnvironment; +class IGameDef; -bool item_material_is_cookable(content_t content); -InventoryItem* item_material_create_cook_result(content_t content); +bool item_material_is_cookable(content_t content, IGameDef *gamedef); +InventoryItem* item_material_create_cook_result(content_t content, + IGameDef *gamedef); -std::string item_craft_get_image_name(const std::string &subname); +std::string item_craft_get_image_name(const std::string &subname, + IGameDef *gamedef); ServerActiveObject* item_craft_create_object(const std::string &subname, ServerEnvironment *env, v3f pos); -s16 item_craft_get_drop_count(const std::string &subname); -bool item_craft_is_cookable(const std::string &subname); -InventoryItem* item_craft_create_cook_result(const std::string &subname); -bool item_craft_is_eatable(const std::string &subname); -s16 item_craft_eat_hp_change(const std::string &subname); +s16 item_craft_get_drop_count(const std::string &subname, + IGameDef *gamedef); +bool item_craft_is_cookable(const std::string &subname, + IGameDef *gamedef); +InventoryItem* item_craft_create_cook_result(const std::string &subname, + IGameDef *gamedef); +bool item_craft_is_eatable(const std::string &subname, + IGameDef *gamedef); +s16 item_craft_eat_hp_change(const std::string &subname, + IGameDef *gamedef); #endif |