# Savable Item Stack

## 🗃️ SavableItemStack Struct

A savable version of an `ItemStack`.

> Namespace: `Esper.Inventool.DataManagement`\
> Access: `public`\
> Type: `struct`\
> Attributes: `[Serializable]`

***

### 📦 Fields

| Access   | Field               | Type                     | Description                                                                   |
| -------- | ------------------- | ------------------------ | ----------------------------------------------------------------------------- |
| `public` | `id`                | `int`                    | The ID of the item.                                                           |
| `public` | `amount`            | `int`                    | The stack amount.                                                             |
| `public` | `equipmentSlotName` | `string`                 | The name of the equipment slot this item is equipped in. Empty if unequipped. |
| `public` | `profile`           | `SavableProfile`         | The stat profile of this item stack.                                          |
| `public` | `appliedEnchanters` | `List<SavableItemStack>` | A list of savable applied enchanter items.                                    |

***

### 🔧 Constructors

| Access   | Constructor                             | Description                                       |
| -------- | --------------------------------------- | ------------------------------------------------- |
| `public` | `SavableItemStack(ItemStack itemStack)` | Creates a savable item stack from an `ItemStack`. |

***

### 🧰 Methods

| Access   | Method          | Returns     | Description                                                |
| -------- | --------------- | ----------- | ---------------------------------------------------------- |
| `public` | `ToItemStack()` | `ItemStack` | Converts this `SavableItemStack` back into an `ItemStack`. |

***
