Type alias System

System: {
    name: string;
    query: Query;
    stage: Stage;
    update: ((entities) => void);
}

Represents a system in an ECS architecture.

Type declaration

  • name: string

    The name identifying the system.

  • query: Query

    The query used to fetch relevant entities each tick.

  • stage: Stage

    The stage in which the system is executed.

  • update: ((entities) => void)
      • (entities): void
      • Advances the system by one tick.

        Parameters

        Returns void