u/Single_Tailor_7310

Reflection System Better Than Unreal's

https://preview.redd.it/z4dja2f4rxah1.png?width=903&format=png&auto=webp&s=286841b52ea2983fa22b8d11bb925eb019f2c3d4

Fully Generated Code

This is the reflection system in my game engine.

I'm currently building an ECS and a component-based architecture similar to Unity in C++, so I created this reflection system to make everything easier.

Without any manual registration, you can expose data simply by writing [[export]]. You can also combine attributes, for example:

[[export, range(min, max)]]

The architecture is somewhat similar to C#'s attribute system (or at least that's what I was aiming for). It automatically generates .generated.hxx files inside the .generated/ directory.

I built it using Clang and LLVM.

These videos were very useful resources while developing it:

https://youtu.be/YhzKDiQe1To?si=TR51WKoKEkzwOlj7

https://youtu.be/IR_L1xf4PrU?si=xcZB5DYYPLFsCcdL

reddit.com
u/Single_Tailor_7310 — 3 days ago