jeff
12/21/2020, 2:29 AMDeactivated User
12/21/2020, 11:29 AMjeff
12/21/2020, 6:42 PMFollowComponent
to shipA that tells it to follow shipB. Later something changes and I want to do
shipA.getComponent<FollowComponent>().target = shipC
I have that implemented this way, but it seemed a bit hacky...
inline fun <reified T : Component> BaseView.getComponent(): T {
return getOrCreateComponentOther<T> { error("No component of type ${T::class.simpleName}") }
}
Deactivated User
12/26/2020, 2:53 PMjeff
12/26/2020, 5:20 PM