diff options
Diffstat (limited to 'source/cFurnaceRecipe.h')
-rw-r--r-- | source/cFurnaceRecipe.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/source/cFurnaceRecipe.h b/source/cFurnaceRecipe.h new file mode 100644 index 000000000..7489b09e6 --- /dev/null +++ b/source/cFurnaceRecipe.h @@ -0,0 +1,34 @@ +#pragma once
+
+#include <list>
+
+class cItem;
+class cFurnaceRecipe
+{
+public:
+ cFurnaceRecipe();
+ ~cFurnaceRecipe();
+
+ void ReloadRecipes();
+
+ struct Fuel
+ {
+ cItem* In;
+ float BurnTime;
+ };
+
+ struct Recipe
+ {
+ cItem* In;
+ cItem* Out;
+ float CookTime;
+ };
+ const Recipe* GetRecipeFrom( const cItem & a_Ingredient ) const;
+ float GetBurnTime( const cItem & a_Fuel ) const;
+
+private:
+ void ClearRecipes();
+
+ struct sFurnaceRecipeState;
+ sFurnaceRecipeState* m_pState;
+};
\ No newline at end of file |