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