novelrt / NovelRT

A cross-platform 2D game engine accompanied by a strong toolset for visual novels.
MIT License
184 stars 42 forks source link

Add rendering persistence rule. Add location for default persistence rules. #498

Closed RubyNova closed 2 years ago

RubyNova commented 2 years ago

This PR solves two problems - the first one is a permanent solution, the second is just a duct tape-style fix until I can figure out something better for the current structure of the namespaces.

The main issue this solves is adding a custom serialisation rule for NovelRT::Ecs::Graphics::RenderingComponent so that it can be packaged as a BinaryPackage correctly.

The secondary duct tape hotfix is adding a location for default persistence rules. This will be replaced in the future when I come up with a better design, but for now, I don't care enough.