wip(0.S2): migrate - a var nothing writes becomes a let; a state is keyed by its module, directory or program, so every program's plan agrees; paths normalized; program states named SceneDemoState / scene_demo_st; the LSP reads state, mut and entry/handler parameters

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-25 15:31:34 +03:00
parent 3eda72e8c2
commit 5ffe50ed02
463 changed files with 72045 additions and 67421 deletions

View file

@ -1,16 +1,16 @@
# queries.ludic - what the world asks the fire
export function fire_lit(fire_st: FireState) -> bool { return fire_st.fr_lit }
export function fire_lit() -> bool { return fr_lit }
# game minutes of fuel left
export function fire_fuel(fire_st: FireState) -> float { return fire_st.fr_fuel }
export function fire_fuel() -> float { return fr_fuel }
export function fire_low(fire_st: FireState) -> bool { return fire_st.fr_lit and fire_st.fr_fuel < fire_st.fr_low_minutes }
export function fire_low() -> bool { return fr_lit and fr_fuel < fr_low_minutes }
# game hours today it has burned in the rain with something over it
export function fire_rain_hours(fire_st: FireState) -> float { return fire_st.fr_rain_h }
export function fire_rain_hours() -> float { return fr_rain_h }
# does it warm a body `dist` metres from it?
export function fire_warms(fire_st: FireState, dist: float) -> bool { return fire_st.fr_lit and dist < fire_st.fr_warm_radius }
export function fire_warms(dist: float) -> bool { return fr_lit and dist < fr_warm_radius }
# will it cook for someone `dist` metres from it? (a station that stands on it asks only fire_lit)
export function fire_cooks(fire_st: FireState, dist: float) -> bool { return fire_st.fr_lit and dist < fire_st.fr_cook_radius }
export function fire_cooks(dist: float) -> bool { return fr_lit and dist < fr_cook_radius }