2020-09-22 20:37:22 +03:00
|
|
|
:: permission-store [landscape]: deprecated
|
2019-11-21 02:16:55 +03:00
|
|
|
::
|
2020-09-22 20:37:22 +03:00
|
|
|
/+ default-agent
|
2019-11-21 02:16:55 +03:00
|
|
|
|%
|
|
|
|
+$ card card:agent:gall
|
|
|
|
+$ versioned-state
|
2020-09-22 20:37:22 +03:00
|
|
|
$% state-0
|
|
|
|
state-1
|
2019-11-21 02:16:55 +03:00
|
|
|
==
|
|
|
|
::
|
2020-09-22 20:37:22 +03:00
|
|
|
+$ state-0 [%0 *]
|
|
|
|
+$ state-1 [%1 ~]
|
2019-11-21 02:16:55 +03:00
|
|
|
--
|
2020-09-22 20:37:22 +03:00
|
|
|
::
|
|
|
|
=| state-1
|
2019-11-21 02:16:55 +03:00
|
|
|
=* state -
|
2020-01-21 23:36:03 +03:00
|
|
|
::
|
2019-11-21 02:16:55 +03:00
|
|
|
^- agent:gall
|
2020-09-22 20:37:22 +03:00
|
|
|
|_ =bowl:gall
|
|
|
|
+* this .
|
|
|
|
def ~(. (default-agent this %|) bowl)
|
|
|
|
::
|
|
|
|
++ on-init on-init:def
|
|
|
|
++ on-save !>(state)
|
|
|
|
++ on-load
|
|
|
|
|= old=vase
|
|
|
|
[~ this]
|
|
|
|
::
|
|
|
|
++ on-poke on-poke:def
|
|
|
|
++ on-peek on-peek:def
|
|
|
|
++ on-watch on-watch:def
|
|
|
|
++ on-leave on-leave:def
|
|
|
|
++ on-agent on-agent:def
|
|
|
|
++ on-arvo on-arvo:def
|
|
|
|
++ on-fail on-fail:def
|
2019-11-21 02:16:55 +03:00
|
|
|
--
|