-
How to snapshot all entities? For network rollback. |
Beta Was this translation helpful? Give feedback.
Answered by
skypjack
Aug 2, 2024
Replies: 1 comment 3 replies
-
Do you mean with the snapshot class? Just use the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well, I mean, what's stopping you from doing it? There is a small utility to serialize what you are interested in in the snapshot hpp file, otherwise you can write your own serialization routine based on views, storage classes and so on. As for the destination, a file or a chunk of memory is the same from the point of view of a serializer. There is a test in the project that writes a regsitry in a bunch of stacks to re-read it later on. 🤷♂️