In my (toy) ecs i hash the typename as a component identifier, maybe a similar 
approach can also work for you?

<https://github.com/enthus1ast/ecs/blob/341704a86b73fb14ce4f408e74a959c0e9f5f585/src/ecs.nim#L24>

Reply via email to