Open nsensfel opened 1 year ago
(narrative:push filename tag_list)
(narrative:pop)
(narrative:pop_until_any tag_list)
tag_list
(narrative:pop_until_all tag_list)
(narrative:pop_while_any tag_list)
(narrative:pop_while_all tag_list)
(narrative:switch filename tag_list)
(narrative:add_tag tag)
(narrative:remove_tag tag)
(narrative:tag_list)
shared
Example of things that could use separate narratives:
(narrative:push filename tag_list)
which creates a new memory stack and loads the indicated narrative.(narrative:pop)
which pops the current narrative (frees memory too).(narrative:pop_until_any tag_list)
which pops narrative until there is a narrative with at least one tag in thetag_list
.(narrative:pop_until_all tag_list)
which pops narrative until there is a narrative with all the tags in thetag_list
.(narrative:pop_while_any tag_list)
(narrative:pop_while_all tag_list)
(narrative:switch filename tag_list)
which pops the current narrative and pushes the new one.(narrative:add_tag tag)
(narrative:remove_tag tag)
(narrative:tag_list)
shared
variable category of issue https://github.com/nsensfel/tonkadur/issues/20. They are stored separately as they do not get freed when narrative switch.Example of things that could use separate narratives: