Modules Constructor
Constructor in Modules<T>
Declaration
public Modules(int capacity, Action<T> registered = null, Action<T> unregistered = null)
Description
Creates a new module collection with a set capacity.
Parameters
capacity | The initial capacity of the collection. |
registered | The callback invoked when a module is registered. |
unregistered | The callback invoked when a module is unregistered. |
Overload
Declaration
public Modules(T[] items, Action<T> registered = null, Action<T> unregistered = null)
Description
Creates a new module collection and pre-registers a list of items.
Parameters
items | The items to pre-register. |
registered | A callback invoked when a module is registered. |
unregistered | A callback invoked when a module is unregistered. |