mapperFor

inline fun <T : Component> mapperFor(): ComponentMapper<T>

Creates a ComponentMapper for the specified Component type.

Provides O(1) retrieval of Components for an com.badlogic.ashley.core.Entity.

Return

a ComponentMapper matching the selected component type.

Parameters

T

the Component type to create a ComponentMapper for.

See also

ComponentMapper
Component