add

inline fun <T : Component> ArchetypeBuilder.add(): ArchetypeBuilder

Adds a Component to an ArchetypeBuilder.

Receiver

the ArchetypeBuilder for creating an Archetype.

Return

the ArchetypeBuilder.

Parameters

T

the component to add to the ArchetypeBuilder.


fun ArchetypeBuilder.add(vararg components: KClass<out Component>): ArchetypeBuilder

Adds multiple components to an ArchetypeBuilder.

Receiver

the ArchetypeBuilder for creating an Archetype.

Return

the ArchetypeBuilder.

Parameters

components

the components to add to the ArchetypeBuilder.


inline fun <T : Component> EntityTransmuterFactory.add(): EntityTransmuterFactory

Adds a Component to an EntityTransmuterFactory.

Receiver

the EntityTransmuterFactory for creating an EntityTransmuter.

Return

the EntityTransmuterFactory.

Parameters

T

the component to add when transmuting an entity.