Questions on entity serialization #181
Unanswered
amerkoleci
asked this question in
Q&A
Replies: 1 comment 2 replies
-
It might be possible, depending on the exact layout of your types. You will probably need to write the interface implementations manually, but that shouldn’t be too hard. Can you post some examples of what your types look like and the corresponding JSON? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
In my engine https://github.com/amerkoleci/alimer/blob/main/src/Alimer.Engine/Entity.cs
I need to serialize/deserialize Entity, it has base Component class and lot of derived components (Transform, Camera etc), I can have custom components coming from different assemblies as well (like physics, navigation), some components can have asset references (texture reference for example) and Entity itself can have children entities.
How can I manage (if possible) this scenario with serde C#?
I've tried with System.Text.Json and failed.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions