> For the complete documentation index, see [llms.txt](https://kdoore.gitbook.io/cs2335/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kdoore.gitbook.io/cs2335/overview-branchlogic/simple-inventory.md).

# Simple Inventory

For the most simple type of inventory - we need this functionality:

* Data-storage: inventory items: &#x20;
* Data-Types: dictionary: key-value pairs: item / count
* Read Data: As a single item, or iterate through a list of key-value pairs
* Update: update counts for adding or removing items
* Display items  in an inventory view:  items with label - count
* Provide ways to 'use' inventory items

### GameData - Inventory

### inventory: Dictionary< PickupType, int >&#x20;

Step 1:  Create and Initialize Dictionary in GameData
