Hi! I have a bit of code: ``` val ASSET_LOCATION: ...
# announcements
r
Hi! I have a bit of code:
Copy code
val ASSET_LOCATION: ComponentMapper<AssetLocationComponent<Any, Component>> = ComponentMapper.getFor(AssetLocationComponent::class.java)
Essentially,
ComponentMapper.getFor
returns
ComponentMapper<T>
, which in this case is
AssetLocationComponent<*,*>
. `AssetLocationComponent`'s generics are:
<A: Any, B: Component>
. So, is there any way to get
KClass<AssetLocationComponent<Any, Component>>
. I am new to kotlin, sorry if it's a silly question 🙂