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
|
|
@ -27,14 +27,13 @@ export property WildFact {
|
|||
diet: int = 0
|
||||
}
|
||||
|
||||
var wl_facts: Queue<WildFact> = null
|
||||
|
||||
export function wildlife_facts() -> Queue<WildFact> {
|
||||
if wl_facts == null { wl_facts = queue_new("wildlife.facts") }
|
||||
return wl_facts
|
||||
export function wildlife_facts(base_st: mut BaseState, wildlife_st: mut WildlifeState) -> Queue<WildFact> {
|
||||
if wildlife_st.wl_facts == null { wildlife_st.wl_facts = queue_new(base_st, "wildlife.facts") }
|
||||
return wildlife_st.wl_facts
|
||||
}
|
||||
|
||||
function wl_fact(what: int, a: WildAnimal) -> WildFact {
|
||||
function wl_fact(base_st: mut BaseState, wildlife_st: mut WildlifeState, what: int, a: WildAnimal) -> WildFact {
|
||||
let f = new WildFact
|
||||
f.what = what
|
||||
f.key = a.key
|
||||
|
|
@ -45,6 +44,6 @@ function wl_fact(what: int, a: WildAnimal) -> WildFact {
|
|||
f.z = a.z
|
||||
f.yaw = a.yaw
|
||||
f.scale = a.scale
|
||||
q_push(wildlife_facts(), f)
|
||||
q_push(base_st, wildlife_facts(base_st, wildlife_st), f)
|
||||
return f
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue