From 5e6c7368592c0fbaa4d9d4320767d3cdcfd0261e Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 12 Jun 2012 20:03:46 +0000 Subject: Updated the crafting recipes architecture to better support crafting hooks. Removed the old recipe file and implementation altogether. git-svn-id: http://mc-server.googlecode.com/svn/trunk@597 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cRecipeChecker.h | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 source/cRecipeChecker.h (limited to 'source/cRecipeChecker.h') diff --git a/source/cRecipeChecker.h b/source/cRecipeChecker.h deleted file mode 100644 index 91084b7de..000000000 --- a/source/cRecipeChecker.h +++ /dev/null @@ -1,39 +0,0 @@ -#pragma once - -#include "cItem.h" - -class cRecipeChecker -{ -public: - static cRecipeChecker * GetRecipeChecker(); - - // Grid of cItems of a_Width width and a_Height Height - cItem CookIngredients( cItem* a_Items, int a_Width, int a_Height, bool a_bConsumeIngredients = false ); - - struct RecipeSlot - { - cItem Item; - int x, y; - }; - - struct Recipe - { - Recipe() : Slots( 0 ), NumItems( 0 ) {} - ~Recipe(); - RecipeSlot* Slots; // Array of RecipeSlots - unsigned int NumItems; - cItem Result; - }; - - void ReloadRecipes(); - static void DeleteMe(); -private: - friend class cRoot; - cRecipeChecker(); - ~cRecipeChecker(); - - struct sRecipeCheckerState; - sRecipeCheckerState* m_pState; - - void ClearRecipes(); -}; \ No newline at end of file -- cgit v1.2.3