]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/craftdef.h
Fix MSVC build
[dragonfireclient.git] / src / craftdef.h
index aa71f1a1ea825424e1017450e23aa7051cce7624..14dc530031ba4eaa834eb49ccfc08e112ae3cd63 100644 (file)
@@ -1,6 +1,6 @@
 /*
 Minetest
-Copyright (C) 2011 celeron55, Perttu Ahola <celeron55@gmail.com>
+Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU Lesser General Public License as published by
@@ -358,6 +358,8 @@ class ICraftDefManager
                        bool decrementInput, IGameDef *gamedef) const=0;
        virtual bool getCraftRecipe(CraftInput &input, CraftOutput &output,
                        IGameDef *gamedef) const=0;
+       virtual std::vector<CraftDefinition*> getCraftRecipes(CraftOutput &output,
+                       IGameDef *gamedef) const=0;
        
        // Print crafting recipes for debugging
        virtual std::string dump() const=0;
@@ -376,6 +378,8 @@ class IWritableCraftDefManager : public ICraftDefManager
                        bool decrementInput, IGameDef *gamedef) const=0;
        virtual bool getCraftRecipe(CraftInput &input, CraftOutput &output,
                        IGameDef *gamedef) const=0;
+       virtual std::vector<CraftDefinition*> getCraftRecipes(CraftOutput &output, 
+                       IGameDef *gamedef) const=0;
 
        // Print crafting recipes for debugging
        virtual std::string dump() const=0;