ludic.compass, inventory, shop, base, things: the compass's lists are state defaults and push through kept_push; the pack clears in place; setup, bind and load paths say so in @alloc_ok

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-28 16:29:33 +03:00
parent cd71da9330
commit bdfe3f18fe
13 changed files with 26 additions and 12 deletions

View file

@ -27,6 +27,7 @@ function cs_all(base_st: mut BaseState) -> []System {
return base_st.cs_list
}
@alloc_ok("at start: a system made for the runner")
export function system_new(key: string, phase: int) -> System {
let s = new System
s.key = key
@ -35,6 +36,7 @@ export function system_new(key: string, phase: int) -> System {
}
# a key is a save section's name, so two systems may not share one
@alloc_ok("at start: a system added to the runner")
export function core_add(base_st: mut BaseState, s: System) -> void {
let all = cs_all(base_st)
for i in 0 .. len(all) {