(now: number, aircraft: Aircraft[])
| 192 | // --- events from upstream / UI --- |
| 193 | |
| 194 | onSnapshot(now: number, aircraft: Aircraft[]): void { |
| 195 | for (const ac of aircraft) this.history.observe(ac, now); |
| 196 | this.history.prune(now); |
| 197 | this.recorder.write("snapshot", { aircraft }); |
| 198 | } |
| 199 | |
| 200 | onConfig(config: Config): void { |
| 201 | this.rescheduleTick(); |