getRelation

inline fun <K : Component, T : Component> getRelation(): K?

Gets the data stored under the relation of kind K and target T.


inline fun <K : Component> getRelation(target: Entity): K?

Gets the data stored under the relation of kind K and target target.