Click or drag to resize
EntityManagerRegisterComponentListenersT Method (ComponentAddedDelegateT, ComponentRemovedDelegateT)
Registers listeners to track adding/removing of components of type T.

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

Parameters

onComponentAdded
Type: Slash.ECS.ComponentsComponentAddedDelegateT
Callback when a new component of the type was added.
onComponentRemoved
Type: Slash.ECS.ComponentsComponentRemovedDelegateT
Callback when a component of the type was removed.

Type Parameters

T
Type of component to track.
See Also