You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This should utilize our neat serialization support. Should be basically easy, I guess but due to physics I'm marking it medium. Will probably take a few attempts to get right.
The text was updated successfully, but these errors were encountered:
And how do you want to serialize nodes? They do not have the serialization stuff yet, only NetworkEvents have. Furthermore, we cannot use the StringManager here, as it generates the IDs based on the Classes available, and if we leave a component out (as components can be created client-side) we will screw the whole file.
Not easy at all. We need something different here.
Components and nodes are the only things that needs serializing for saving/snapshotting for now.
We have decided that UUIDs are most convenient, simple and efficient for our purpose of identifying components and nodes.
We will use Boost.Uuid for the UUIDs. This needs to be implemented first.
For reading/saving things from/to disk we'll use Boost.ProperyTree. This library can read/write a bunch of formats so we don't have to focus on anything specific like xml or json. Perhaps we can also use a custom writer/parser for network snapshotting.
We'll then need to recursively serialize/deserialize our node structure and node-component structure into this map. This will be the hardest part.
This should utilize our neat serialization support. Should be basically easy, I guess but due to physics I'm marking it medium. Will probably take a few attempts to get right.
The text was updated successfully, but these errors were encountered: