/** * SystemIntegrator.ts * * Registers built-in ECS systems that connect the engine subsystems: * - Animation system reads 'trait:animation' components * - Audio system reads 'trait:audio' components * - Particle system reads 'trait:particles' components * - State machine system reads 'trait:state' components * - Network sync system reads 'trait:sync' components * - Theme system reads 'trait:theme' components * * Each "integration system" queries the ECS World for entities with the * relevant trait component, then drives the corresponding engine subsystem. */ import { World, WorldEntity as Entity } from '../ecs'; import type { SystemScheduler, SystemPhase } from '../ecs'; import type { EventBus } from '@holoscript/core'; export interface ECSSystem { name: string; priority: number; enabled: boolean; requiredComponents: string[]; update: (world: World, entities: Entity[], delta: number) => void; phase?: SystemPhase; } /** * Create the built-in integration systems. * These bridge ECS components to engine subsystems. */ export declare function createIntegrationSystems(eventBus: EventBus): ECSSystem[]; /** * Register all integration systems with the scheduler. */ export declare function registerIntegrationSystems(scheduler: SystemScheduler, eventBus: EventBus, world?: World): void; //# sourceMappingURL=SystemIntegrator.d.ts.map