oneOf

fun oneOf(vararg components: KClass<out Component>): Aspect.Builder

Includes entities to an Aspect if they have at least one of the specified components.

Return

an Aspect.Builder for the Aspect.

Parameters

components

one of the components the entities must have.


fun Aspect.Builder.oneOf(vararg components: KClass<out Component>): Aspect.Builder

Includes entities to an Aspect if they have at least one of the specified components.

Receiver

the Aspect.Builder for creating an Aspect.

Return

an Aspect.Builder for the Aspect.

Parameters

components

one of the components the entities must have.