kkukshtel / castledb-unity-importer

Use CastleDB files in Unity with some extra sugar
MIT License
99 stars 8 forks source link

Enhancements via Roslyn? #16

Open kkukshtel opened 4 years ago

kkukshtel commented 4 years ago

I've been reading a lot about C#'s new features around Roslyn and am wondering if any of the stuff it is capable of would be able to be leveraged for this project? There's a lot of manual code gen happening right now, but if there was some way to intelligently parse the CastleDB file and generate a C# class that had proper Attributes/etc., this code could get a lot cleaner and be a lot more resilient.

That said, I'm a big noob here so would love to hear if other people have any experience or opinions or can point to relevant projects.

kkukshtel commented 4 years ago

Maybe stuff to look at here: https://github.com/louthy/language-ext/wiki/Code-generation