signalbox/
lib.rs

1//! Signalbox: eight authored railway dispatch shifts with complete campaign rules.
2//!
3//! Run `cargo run -p signalbox --offline --locked -j 2` on a supported native
4//! graphics host. Pure rules and the legal dispatcher are available as [`Game`].
5//! The browser build uses the same model and shared Ferravex input/session host.
6mod content;
7pub mod model;
8mod view;
9
10use ferravex_arcade::{Color, Conf, Meta, window};
11pub use model::Game;
12
13/// Player-facing metadata and complete controls for the shared lifecycle host.
14pub const META: Meta = Meta {
15    id: "signalbox",
16    title: "Signalbox",
17    subtitle: "Train routing",
18    controls: "Left/Right Select | Act Operate | X Run/Pause | C Retry",
19    help: &[
20        "Send each train to the platform matching its colored letter.",
21        "Click points to pick a branch; dashes show the route.",
22        "Click a lamp: green admits one train. Meeting trains crash.",
23        "X stops the clock to plan. Late trains cost stars.",
24    ],
25    accent: Color::new(0.92, 0.73, 0.40, 1.),
26};
27
28fn conf() -> Conf {
29    window(META.title)
30}
31async fn game() {
32    ferravex_arcade::run::<Game>(META).await;
33}
34ferravex_render::game!(conf, game);