Click or drag to resize
EntityManagerGetEntityComponentTComponent Method
Convenience method for retrieving a component from two possible entities.

Namespace: Slash.ECS.Components
Assembly: Slash.ECS (in Slash.ECS.dll) Version: 1.0.6018.40178
Syntax
public bool GetEntityComponent<TComponent>(
	Entity2Data data,
	out int entityId,
	out TComponent component
)
where TComponent : class, IEntityComponent

Parameters

data
Type: Slash.ECS.EventsEntity2Data
Data for the event that affected two entities.
entityId
Type: SystemInt32
Id of the entity having the component attached.
component
Type: TComponent
Component.

Type Parameters

TComponent
Type of the component to get.

Return Value

Type: Boolean
True if one of the entities has a TComponent attached; otherwise, false.
See Also