Registry<T>
Class in Zigurous.Architecture
Declaration
public class Registry<T>Description
Manages a list of unique items and invokes callbacks when an item is added or removed from the list.
Type Parameters
| T | The type of item to register. |
Properties
| items | The items registered in the list (Read only). |
| registered | A callback invoked when an item is registered. |
| unregistered | A callback invoked when an item is unregistered. |
| Count | The amount of items registered in the list (Read only). |
| Item[int] | Returns the item at the specified index. |
Constructors
| Registry | Creates a new list with a set capacity. |
Methods
| Register | Registers an item in the list. |
| Unregister | Unregisters an item from the list. |
| Clear | Unregisters all items from the list. |
| Contains | Checks if a given item is registered in the list. |