<Entity> parametrization in the declaration of World
<Entity> parametrization is the declaration of the class System.
Why?
When creating a custom entity, all typings are lost (in favor of the base Entity class) in createEntity and inside inherited systems. It can make the framework a bit unpleasant to use, either because you need to cast first to unknown, or because you need to create an intermediate system class.
Hi,
This is a super simple PR introducing:
<Entity>
parametrization in the declaration ofWorld
<Entity>
parametrization is the declaration of the classSystem
.Why?
When creating a custom entity, all typings are lost (in favor of the base
Entity
class) increateEntity
and inside inherited systems. It can make the framework a bit unpleasant to use, either because you need to cast first tounknown
, or because you need to create an intermediate system class.