import { ComponentType, Entity, Context } from "@cosmic/core"; /** * Systems use data provided by the World/ECS to transform and or work with entities. * They can query the World with a set of Components and receive all entities carying those features. * */ export class System { public constructor( public components: ComponentType[], public pulse: (ctx: Context, entities: Array<[Entity, ...unknown[]]>) => void, ) {} }