wip(0.S3): packages and examples migrated again from their pre-0.S sources in one run
ludic migrate state packages <every example program> packages/ludic.lab/example/plate.ludic 1804 vars into 126 states, 64 into lets; 23498 edits in 460 files Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5ffe50ed02
commit
19fcf60599
459 changed files with 17862 additions and 17603 deletions
|
|
@ -1,16 +1,16 @@
|
|||
# queries.ludic - what the world asks the fire
|
||||
export function fire_lit() -> bool { return fr_lit }
|
||||
export function fire_lit(fire_st: FireState) -> bool { return fire_st.fr_lit }
|
||||
|
||||
# game minutes of fuel left
|
||||
export function fire_fuel() -> float { return fr_fuel }
|
||||
export function fire_fuel(fire_st: FireState) -> float { return fire_st.fr_fuel }
|
||||
|
||||
export function fire_low() -> bool { return fr_lit and fr_fuel < fr_low_minutes }
|
||||
export function fire_low(fire_st: FireState) -> bool { return fire_st.fr_lit and fire_st.fr_fuel < fire_st.fr_low_minutes }
|
||||
|
||||
# game hours today it has burned in the rain with something over it
|
||||
export function fire_rain_hours() -> float { return fr_rain_h }
|
||||
export function fire_rain_hours(fire_st: FireState) -> float { return fire_st.fr_rain_h }
|
||||
|
||||
# does it warm a body `dist` metres from it?
|
||||
export function fire_warms(dist: float) -> bool { return fr_lit and dist < fr_warm_radius }
|
||||
export function fire_warms(fire_st: FireState, dist: float) -> bool { return fire_st.fr_lit and dist < fire_st.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(dist: float) -> bool { return fr_lit and dist < fr_cook_radius }
|
||||
export function fire_cooks(fire_st: FireState, dist: float) -> bool { return fire_st.fr_lit and dist < fire_st.fr_cook_radius }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue