06-10-2012, 09:02 PM
Alright, I decided that the next useful step would be to refactor crafting a bit, giving it the chance to be hookable by Lua properly. For that, we need a few "accessor objects" - cCraftingGrid representing both the contents of the crafting slots and the ingredients for a recipe, and cCraftingRecipe representing the recipe's ingredients and results. These two objects can be made to be manipulated easily in Lua. And they can be stored persistently in the crafting window object.
So, FakeTruth, don't do anything with the crafting hook yet, alright? I'll give you a proper interface for that first
So, FakeTruth, don't do anything with the crafting hook yet, alright? I'll give you a proper interface for that first