bitECS icon indicating copy to clipboard operation
bitECS copied to clipboard

Serialize/Deserialize a single entity with components?

Open Zetaphor opened this issue 2 years ago • 1 comments

Maybe I'm thinking about this the wrong way, but I'm interested in serializing/deserializing a single entity with its associated components. I could do this through manual iteration over its components and associated properties, for which I have a definition I can reference, but I was hoping there is a native method that I'm just missing.

Zetaphor avatar Feb 12 '23 15:02 Zetaphor

one issue that may arise with this is if you have components with Types.eid fields since entity ids are world-dependent. i'm trying to build a custom serialization and run into issue that it seems hard to check for those outside the library

caryoscelus avatar Jan 27 '24 20:01 caryoscelus