Closed AdamsLair closed 7 years ago
Would it make sense to also add other serializers (ie Protobuff, and other high performance serializers/picklers) Maybe I should open a new issue for this?
The real issue is probably extending the plugin API to make custom serialization formats possible. From that point on, everyone can implement any format and publish it as a package. Considering that, I'd keep "all the other formats" out of the issue tracker for now. This one here is mostly a nudge for me to extend that API. :)
Another thing that I feel might be interesting to see would be the possibility to package all resources in one single file. Do you think it might be added sometime in the future?
edit: sorry, didn't mean to mix the topic :(
Yes, but that's a different issue. Please don't mix issues :D To your question: I've already thought about packaging options, but don't have a solid concept yet and am not planning to implement it in the near future. It definitely will come at some point, but it's not in sight yet.
...or maybe use YAML instead?
Also, make sure the unit tests for serialization just use any kind of formatting that is available - whether defined in a plugin or not.
Support for custom Serializers is now part of Duality, see here. Just define your own one in a Core Plugin, and it'll be a "first-class citizen" for serialization in both core and editor. This enables projects to use their own kind of serialization, as well as multiple distinct Serializers for different purposes - such as a fast binary format without metadata and versioning for non-dev releases of the game or similar.
Closing this, as it has become a non-issue now that custom serialization can be added via plugin.