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:
Orkun ÇAKILKAYA 2026-09-25 15:31:34 +03:00
parent 5ffe50ed02
commit 19fcf60599
459 changed files with 17862 additions and 17603 deletions

View file

@ -23,25 +23,41 @@ export port VehicleRider {
safe_z: fn() -> float = fn ve__safe_z
}
var ve_ids: int = 0
var ve_sx: float = 0.0
var ve_sz: float = 0.0
export state VehiclesState {
ve_kept_horse: bool = false
ve_kept_boat: bool = false
ve_kept_food: float = 40.0
ve_ids: int = 0
ve_sx: float = 0.0
ve_sz: float = 0.0
ve_list: []Vehicle = null
ve_cur: Vehicle = null
ve_dock_x: float = 0.0
ve_dock_z: float = 0.0
ve_dock_yaw: float = 0.0
ve_rail_x: float = 0.0
ve_rail_z: float = 0.0
ve_rail_yaw: float = 0.0
ve_have_dock: bool = false
ve_swell_said: float = 0.0
ve_fact_q: Queue<VehicleFact> = null
}
function ve__dry(x: float, z: float) -> float { return -10000.0 }
function ve__open(x: float, z: float, r: float) -> bool { return false }
function ve__calm(x: float, z: float, fx: float, fz: float) -> float { return 0.0 }
function ve__zero() -> float { return 0.0 }
function ve__next() -> int {
ve_ids += 1
return ve_ids
function ve__next(vehicles_st: mut VehiclesState) -> int {
vehicles_st.ve_ids += 1
return vehicles_st.ve_ids
}
function ve__nothing(v: Vehicle) -> void { }
function ve__board(x: float, z: float, yaw: float) -> void { }
function ve__ride(x: float, y: float, z: float, yaw: float, speed: float) -> void { }
function ve__off(x: float, z: float) -> void { }
function ve__safe(x: float, z: float, from_y: float, max_depth: float) -> bool {
ve_sx = x
ve_sz = z
function ve__safe(vehicles_st: mut VehiclesState, x: float, z: float, from_y: float, max_depth: float) -> bool {
vehicles_st.ve_sx = x
vehicles_st.ve_sz = z
return true
}
function ve__safe_x() -> float { return ve_sx }
function ve__safe_z() -> float { return ve_sz }
function ve__safe_x(vehicles_st: VehiclesState) -> float { return vehicles_st.ve_sx }
function ve__safe_z(vehicles_st: VehiclesState) -> float { return vehicles_st.ve_sz }