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:
parent
3eda72e8c2
commit
5ffe50ed02
463 changed files with 72045 additions and 67421 deletions
|
|
@ -1,16 +1,17 @@
|
|||
# guest.ludic - a machine that draws another's animals puts its own away whole, and they come back
|
||||
# as they were when it stops; in between the list is the copies it is handed (wildlife_make)
|
||||
var wl_own: []WildAnimal = null
|
||||
|
||||
export function wildlife_put_away(wildlife_st: mut WildlifeState) -> void {
|
||||
if wildlife_st.wl_own != null { return }
|
||||
wildlife_st.wl_own = wildlife_all(wildlife_st)
|
||||
wildlife_st.wl_list = new []WildAnimal
|
||||
export function wildlife_put_away() -> void {
|
||||
if wl_own != null { return }
|
||||
wl_own = wildlife_all()
|
||||
wl_list = new []WildAnimal
|
||||
}
|
||||
|
||||
export function wildlife_bring_back(wildlife_st: mut WildlifeState) -> void {
|
||||
if wildlife_st.wl_own == null { return }
|
||||
wildlife_st.wl_list = wildlife_st.wl_own
|
||||
wildlife_st.wl_own = null
|
||||
export function wildlife_bring_back() -> void {
|
||||
if wl_own == null { return }
|
||||
wl_list = wl_own
|
||||
wl_own = null
|
||||
}
|
||||
|
||||
export function wildlife_away(wildlife_st: WildlifeState) -> bool { return wildlife_st.wl_own != null }
|
||||
export function wildlife_away() -> bool { return wl_own != null }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue