import type { NodeDef } from '../../NodeRegistry'; import { num } from '../shared'; export const Time: NodeDef = { type: 'Time', label: 'Time', category: 'data', description: 'Seconds since the game started, and the length of the current frame.', inputs: [], outputs: [num('time'), num('dt')], params: [], run: (ctx) => ({ outputs: { time: ctx.time, dt: ctx.dt } }), };