Click or drag to resize
EntityManagerRegisterComponentListeners Method (Type, ComponentAddedDelegateObject, ComponentRemovedDelegateObject)
Registers listeners to track adding/removing of components of specified component type.

Namespace: Slash.ECS.Components
Assembly: Slash.ECS (in Slash.ECS.dll) Version: 1.0.6018.40178
Syntax
public void RegisterComponentListeners(
	Type componentType,
	ComponentAddedDelegate<Object> onComponentAdded,
	ComponentRemovedDelegate<Object> onComponentRemoved
)

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