 | EntityManagerRegisterComponentListeners Method (Type, ComponentAddedDelegateObject, ComponentRemovedDelegateObject) |
Registers listeners to track adding/removing of components of specified component type.
Namespace: Slash.ECS.ComponentsAssembly: Slash.ECS (in Slash.ECS.dll) Version: 1.0.6018.40178
Syntaxpublic void RegisterComponentListeners(
Type componentType,
ComponentAddedDelegate<Object> onComponentAdded,
ComponentRemovedDelegate<Object> onComponentRemoved
)
Public Sub RegisterComponentListeners (
componentType As Type,
onComponentAdded As ComponentAddedDelegate(Of Object),
onComponentRemoved As ComponentRemovedDelegate(Of Object)
)
public:
void RegisterComponentListeners(
Type^ componentType,
ComponentAddedDelegate<Object^>^ onComponentAdded,
ComponentRemovedDelegate<Object^>^ onComponentRemoved
)
member RegisterComponentListeners :
componentType : Type *
onComponentAdded : ComponentAddedDelegate<Object> *
onComponentRemoved : ComponentRemovedDelegate<Object> -> unit
Parameters
- componentType
- Type: SystemType
Type of component to track. - onComponentAdded
- Type: Slash.ECS.ComponentsComponentAddedDelegateObject
Callback when a new component of the type was added. - onComponentRemoved
- Type: Slash.ECS.ComponentsComponentRemovedDelegateObject
Callback when a component of the type was removed.
See Also