ludic.ui: an unmounted component is mounted again rather than made again - its record renewed (a generated renew), its props and model kept; an action's call answers into a ring
A prompt that comes and goes as a player walks (co-op's netleak: in_get, cmp_*_new, bd_class, value_slot/put) made a new record, props and model on every mount, and an action's call answered into a new Val (ev_call_with). examples/library/ui_remount: two thousand comings and goings hold the heap at 0, and the counter starts at 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
fc0f3d3790
commit
6cdef20cc2
14 changed files with 46052 additions and 45244 deletions
|
|
@ -8,6 +8,7 @@ export property UiClass {
|
|||
lss_path: string = ""
|
||||
lss: string = ""
|
||||
make: fn() -> pointer = null
|
||||
renew: fn(pointer) -> void = null # a record `make` made, put back as new: an instance mounted again
|
||||
props: fn(pointer, Val) -> void = null
|
||||
model: fn(pointer, Val) -> Val = null # fills the object it is given (the instance keeps one)
|
||||
call: fn(pointer, string, Val, Val) -> Val = null # the last: where to write the answer, or null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue