# Dictionaries

## Overview

The [**Dictionaries**](https://assetstore.unity.com/packages/tools/game-toolkits/modules-dictionaries-192899?aid=1100lxWw\&pubref=p80-19) module adds serializable dictionary-like functionality to your project. Essentially a class that acts a bit like a dictionary, but is not, including key/value pairs and helper methods.

The scripts are fairly simple and straightforward and while it can be used with our other modules, this is a great addition to any project which needs serializable key/value pair functionality.

{% hint style="warning" %}
If you are migrating from an earlier Game Modules version to Game Modules 4, check the  page on [**Dictionaries migration tips**](/magic-pig-games/game-modules-4/v4-migration-tips/dictionaries.md)!
{% endhint %}

{% hint style="success" %}
The `Dictionaries` class currently supports the following types:

* int
* float
* bool
* Texture2D
* Sprite
* AnimationClip
* AudioClip
* Vector2
* Vector3
* Vector4
* Color
* Prefab *(Can hold game objects other than prefabs as well)*

It also supports these Game Modules types:

* Stat
* ItemObject
* ItemAttribute
* Quest
* QuestCondition
* QuestReward
* Condition
* LootBox
* LootItems
  {% endhint %}

{% content-ref url="/pages/KvTyfFogRZ6uHpKT12c7" %}
[Dictionaries Setup](/magic-pig-games/game-modules-4/module-documentation/dictionaries/dictionaries-setup.md)
{% endcontent-ref %}

{% embed url="<https://www.youtube.com/watch?v=j6Ac8kLsRhU>" %}


---

# 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://infinitypbr.gitbook.io/magic-pig-games/game-modules-4/module-documentation/dictionaries.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.
