CraftingProcess
Represents a crafting process where certain items require time to be crafted. This class tracks the progress, amount remaining, and whether the crafting is in progress.
CRAFTING PROCESS
- recipe: Recipe_SO reference to keep track of its crafting progress. 
- remainingAmountToCraft: Amount of Result Items still left to craft out of the specified Recipe. 
- totalCrafted: Amount of Result Items ready to be collected. 
- craftingProgress: From 0 to 1, tracks the Crafting Progress made for this iteration. If remainingAmountToCraft = 4, craftingProgress needs to go from 0 to 1 four times so all Items are crafted in this CraftingProcess. 
- isCrafting: Returns true if it is still crafting. Returns false if crafting process has finished. 
- craftingCoroutine: Reference to the Crafting Process Coroutine that handles Crafting. 
Constructor | CraftingProcess.cs 
CraftingProcess(Recipe_SO recipe, int remainingAmountToCraft)
Last updated