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:
parent
cd71da9330
commit
bdfe3f18fe
13 changed files with 26 additions and 12 deletions
|
|
@ -44,6 +44,7 @@ export function things_load(things_st: mut ThingsState, v: Val, version: int) ->
|
|||
for i in 0 .. Value.count(l) { th_from_json(things_st, Value.at(l, i)) }
|
||||
}
|
||||
|
||||
@alloc_ok("on load: a saved Thing read back")
|
||||
function th_from_json(things_st: mut ThingsState, o: Val) -> void {
|
||||
let k = thing_kind_by_key(sv_str(o, "kind", ""))
|
||||
if k < 0 { return }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue