Kit.Containers Namespace |
| Class | Description | |
|---|---|---|
| AsyncReactiveListT | A ListT that fires events when items are added or removed. | |
| BagT | A generic class that holds how much of a particular item you carry. Can be used to create things like Inventories or Wallets. | |
| BiDictionaryTFirst, TSecond | A 1-to-1 dictionary that can be used to lookup with either item as key. | |
| Buff | Represents an Upgrade that is only applicable for a specified duration, and gets removed afterwards. Needs to be added through Apply(IUpgradeable) to an IUpgradeable for the timer to start. | |
| JsonPrefab |
Instantiates a prefab for each object encountered while reading a Json and populates the instances with the states provided. You
have to provide the path to a prefab and anything enclosed with {} in the prefab path is replaced with the value of a property, so you
can instantiate different prefabs depending on the state.
| |
| JsonPrefabAttribute | Attribute to use for the State-Mono mode. | |
| JsonPrefabConverter | JsonConverter to use for the Mono-only mode. | |
| JsonSaveJObjectOnDestroy | Component added to instances created in JObject-Mono mode. Saves state on destruction. | |
| JsonSaveStateOnDestroy | Component added to instances created in State-Mono mode. Saves state on destruction. | |
| JsonSubtypes | Allows to create instances of subclasses depending on Json. | |
| JsonSubtypesKnownSubTypeAttribute | The attribute to place on child classes for JsonSubtypes. | |
| JsonSubtypesKnownSubTypeWithPropertyAttribute | The attribute to place on child classes for JsonSubtypes (with property distinguishment). | |
| Stat | Represents the base and current value of a single stat. Multiple instances of this class be used instead of the Stats class if access through individual variables is desired. | |
| StatBaseProperty | A more inspector-friendly AsyncReactiveProperty for use in Stats. | |
| Stats |
Represents the base and current values of stats of an entity as a dictionary. Can be used with both POCO objects or
MonoBehaviours with Odin's SerializedMonoBehaviour.
| |
| Upgrade | A list of effects to be identified by an ID. | |
| UpgradeList | A more inspector-friendly list for use in SerializedMonoBehaviours. |
| Interface | Description | |
|---|---|---|
| IUpgradeable |
Any entity (POCO or SerializedMonoBehaviour) that wishes to have stats should implement this
interface and provide a list of Upgrades.
|
| Enumeration | Description | |
|---|---|---|
| BuffMode | Represents the action to take when another buff with the same ID already exists. | |
| EffectType | Represents how an Effect affects the value. |