Modules<T>

Implements IModular<T>


Declaration

public sealed class Modules<T> : IModular<T> where T : class

Description

Manages a list of registered entity modules.

Type Parameters

TThe type of entity to manage.

Properties

itemsThe modules registered to the entity (Read only).
registeredA callback invoked when a module is registered.
unregisteredA callback invoked when a module is unregistered.
countThe amount of modules registered to the entity (Read only).
Item[int]Returns the module at the specified index.

Constructors

ModulesCreates a new module collection with a set capacity.

Methods

RegisterRegisters a module to the entity.
UnregisterUnregisters a module from the entity.
IsRegisteredChecks if a given module is registered.