Mapper

abstract class Mapper<T : Component>

A utility abstract class for companion objects of Components. Defines a static mapper available of a chosen Component type.

Extending this class outside nested objects in Component classes will result in a GdxRuntimeException, or alternatively a java.lang.ExceptionInInitializerError during object initiation. Using wrong generic type for T will result in runtime exceptions due to type mismatch when using the mapper.

See also

ComponentMapper

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val mapper: ComponentMapper<T>

ComponentMapper for the T.