Skip to content
Discussion options

You must be logged in to vote

Thank you for the answers. So it seems that unfortunetly with this kind of reserialization it's not possible to achieve deterministic logic when client connects to the server and receives the state.
Maybe if the serialization also included archetypes the order would stay the same? Or maybe there would be other issues that I don't know of.

Below is the code that also tests it.

// Create EntityStore where there are two archetypes, but then delete all entities from one archetype
var store = new EntityStore();
store.CreateEntity(new EntityName(), Tags.Get<MyTag1>()).DeleteEntity();
store.CreateEntity(new EntityName(), Tags.Get<MyTag2>());

// Reserialize into a new EntityStore. In the reseria…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@bjkarasek
Comment options

@friflo
Comment options

@bjkarasek
Comment options

Answer selected by bjkarasek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants