You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val Placeable: Family = Family.all(
NavigationComponent.Position::class.java,
NavigationComponent.Rotation::class.java
).get()
val Movable: Family = Family.all(
NavigationComponent.Position::class.java,
NavigationComponent.Rotation::class.java,
MovementComponent.MoveSpeed::class.java,
MovementComponent.MoveInfo::class.java
).get()
is there any way to make Movable something like this?
val Movable: Family = Family.all(
*Placeable.components,
MovementComponent.MoveSpeed::class.java,
MovementComponent.MoveInfo::class.java
).get()
The text was updated successfully, but these errors were encountered:
@metaphore I have to create family wrapper class that makes that because you can't access to types you pass into all, one and exclude
UPD
I found that approach as ugly workaround to create wrapper class because in my case it returns Family class from which you can't build a new one for, e.g. Engine.getEntitiesFor because all, one, exclude are private fields
So I may be will have to create a bunch of narrow-case families for each particular system
I have these families:
is there any way to make
Movable
something like this?The text was updated successfully, but these errors were encountered: