Skip to content

Conversation

@JBenda
Copy link
Owner

@JBenda JBenda commented Jul 12, 2022

a snapshot contains all data which are not contained in the story and are
neccessary to restore the current state. Because of that a snapshot contains
a global and all corresponding runners.

  • For loading a snapshot the same story file must be loaded
  • functions must be bind again after loading a snapshot

further notes:

  • add new snapshot_interface to implement for not trivial data types
  • implement runner_create_snapshot and globals_create_snapshot
  • implement snapshot interface for access from user
  • implement writing snapshot to file and reading it from file
  • add new_globals_from_snapshot and new_runner_from_snapshot for story
  • updated wiki

JBenda and others added 14 commits November 16, 2022 10:01
snapshot creation is only possilbe via runner, because runner without
global state wont work. The fact that the runner also snapshots all
other runner with the same globals is a bit obscure and may should be
changed, but since they are kind of related \_o_o_/
@JBenda
Copy link
Owner Author

JBenda commented Sep 24, 2023

Was merged with #49

@JBenda JBenda closed this Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant