class

Quartz::Simulator::App

Inherits Reference < Object

Event-driven DSL for host-side FAP sketches.

App.new("name") { |ctx, event| ... } # legacy single-handler form App.new(ctx) do # DSL form on_input { |ev| ... } on_tick { |n| ... } run(max_ticks: 100) end

Constructors

new(name : String, &handler : Context, InputEvent | Nil -> )
Source
new(ctx : Context, name : String = "app", &) : App
Source

Instance methods

name
Source
on_input
Source
on_tick
Source
run(events : Array(InputEvent) = [] of InputEvent) : Context

Legacy run: fresh HAL+Context, drives the stored handler.

Source
run(*, max_ticks : Int32) : Context

DSL run: requires a Context bound via the DSL ctor. Keyword-only to keep the legacy run(events) form unambiguous.

Source

Nested types