RepeatingSystem

abstract class RepeatingSystem(val interval: Duration = 50.milliseconds) : Query, System

Guide: Ticking systems

A system for the ECS that will run every interval ticks.

Parameters

interval

How often to run this system in ticks.

See also

Constructors

Link copied to clipboard
constructor(interval: Duration = 50.milliseconds)

Functions

Link copied to clipboard
inline fun <T : Accessor<*>> addAccessor(create: (index: Int) -> T): T
Link copied to clipboard

Calculates, or gets cached values for an archetype

Link copied to clipboard
fun doTick()
Link copied to clipboard
inline fun fastForEach(crossinline run: (TargetScope) -> Unit)
Link copied to clipboard
fun flow(): Flow<TargetScope>
Link copied to clipboard

Gets a component, ensuring it is on the entity.

Link copied to clipboard

Gets a component or provides a default if the entity doesn't have it.

Link copied to clipboard

Gets a component or null if the entity doesn't have it.

Link copied to clipboard

Queries for a specific relation or by kind/target.

Link copied to clipboard
operator fun <T> Accessor<T>.getValue(thisRef: TargetScope, property: KProperty<*>): T
Link copied to clipboard
open operator override fun iterator(): Iterator<TargetScope>
Link copied to clipboard
open override fun onStart()
Link copied to clipboard
operator fun <T : IndexedAccessor<*>> AccessorBuilder<T>.provideDelegate(thisRef: Any, property: KProperty<*>): T
operator fun Family.provideDelegate(thisRef: GearyQuery, property: KProperty<*>): DirectAccessor<Family>

Properties

Link copied to clipboard

A lazily built immutable family that represents all data this holder needs to function.

Link copied to clipboard
Link copied to clipboard

Is the family of this holder not restricted in any way?