Click or drag to resize

Kit.Containers Namespace

Collections and data containers.
Classes
  ClassDescription
Public classAsyncReactiveListT
Public classCode exampleBagT
A generic class that holds how much of a particular item you carry. Can be used to create things like Inventories or Wallets.
Public classBiDictionaryTFirst, TSecond
A 1-to-1 dictionary that can be used to lookup with either item as key.
Public classCode exampleBuff

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.

Public classCode exampleJsonPrefab
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.
Public classJsonPrefabAttribute
Attribute to use for the State-Mono mode.
Public classJsonPrefabConverter
JsonConverter to use for the Mono-only mode.
Public classJsonSaveJObjectOnDestroy
Component added to instances created in JObject-Mono mode. Saves state on destruction.
Public classJsonSaveStateOnDestroy
Component added to instances created in State-Mono mode. Saves state on destruction.
Public classJsonSubtypes
Allows to create instances of subclasses depending on Json.
Public classJsonSubtypesKnownSubTypeAttribute
The attribute to place on child classes for JsonSubtypes.
Public classJsonSubtypesKnownSubTypeWithPropertyAttribute
The attribute to place on child classes for JsonSubtypes (with property distinguishment).
Public classStat

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.

Public classStatBaseProperty
A more inspector-friendly AsyncReactiveProperty for use in Stats.
Public classCode exampleStats
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.
Public classUpgrade
A list of effects to be identified by an ID.
Public classUpgradeList
A more inspector-friendly list for use in SerializedMonoBehaviours.
Structures
Interfaces
  InterfaceDescription
Public interfaceIUpgradeable
Any entity (POCO or SerializedMonoBehaviour) that wishes to have stats should implement this interface and provide a list of Upgrades.
Enumerations
  EnumerationDescription
Public enumerationBuffMode
Represents the action to take when another buff with the same ID already exists.
Public enumerationEffectType
Represents how an Effect affects the value.