-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serializing/Deserializing Relations #25
Comments
Hi! Serialization currently serializes only components, relation are special components under the hood, but you can't name them to serialize. It is the most undeveloped feature :) |
Thank you! I am however not sure what you mean by "So relations serialization would have to be handled in the serialization module." |
It is something that needs to be handled on library. |
Thanks again. Some ideas about this, or is this not yet fleshed out? Maybe I can look into this! |
Just an oversight mostly. The only problem is to decide when to serialize relation. |
I will look into the implementation, maybe I can provide something. Not sure though. And just as a gut feeling: |
If only one entity and relation will get serialized, then on deserialization, if second entity is not already present, relation must be dropped immediately, as relation can exist only on both entities at once. |
Hey,
right now I'm trying out some ECS for a little pet project of mine. Even though it is no game I thought I try out some ECS out of curiosity.
I fiddled around a bit to get the serialization working, after which I was testing if Relations can also be serialized. Because somewhere in the docs I read relations are special components.
But after a short test it seems they are not beeing serialized.
Is this intentional or did I do something wrong?
Also, as far as I could see I can only serialize 16 components for any Entity (A, B, ..., P). Any way to increase the components serialized?
The text was updated successfully, but these errors were encountered: