Modules<T>
Class in Zigurous.DataStructures
Implements IModular<T>
Declaration
public sealed class Modules<T> : IModular<T> where T : class
Description
Manages a list of registered entity modules.
Type Parameters
T | The type of entity to manage. |
Properties
items | The modules registered to the entity (Read only). |
registered | A callback invoked when a module is registered. |
unregistered | A callback invoked when a module is unregistered. |
count | The amount of modules registered to the entity (Read only). |
Item[int] | Returns the module at the specified index. |
Constructors
Modules | Creates a new module collection with a set capacity. |
Methods
Register | Registers a module to the entity. |
Unregister | Unregisters a module from the entity. |
IsRegistered | Checks if a given module is registered. |