# 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

* <mark style="color:purple;">recipe:</mark> Recipe\_SO reference to keep track of its crafting progress.
* <mark style="color:purple;">remainingAmountToCraft:</mark> Amount of Result Items still left to craft out of the specified Recipe.
* <mark style="color:purple;">totalCrafted:</mark> Amount of Result Items ready to be collected.
* <mark style="color:purple;">craftingProgress:</mark> 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.
* <mark style="color:purple;">isCrafting:</mark> Returns true if it is still crafting. Returns false if crafting process has finished.
* <mark style="color:purple;">craftingCoroutine:</mark> Reference to the Crafting Process Coroutine that handles Crafting.&#x20;

### Constructor | CraftingProcess.cs&#x20;

> <mark style="color:green;">CraftingProcess(Recipe\_SO recipe, int remainingAmountToCraft)</mark>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cowsinss-organization.gitbook.io/inventory-pro-add-on-documentation/content/03.-content/03.1-crafting/craftingprocess.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
