Replies: 1 comment 5 replies
-
You've a few options:
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
here is my problem。
In my project,I have two module,both want use same entt_registry.
So I share the same entt::registry instance with them.
But , when i add component i found type_id of diffecnent component will be same.
in module a
registry->emplace ,
const auto index = type_seq::value();
index = 0;
in module b
registry->emplace ,
const auto index = type_seq::value();
index = 0; // same as module a
and i think this is because
both module has it's own static varible.
so what can i do...
Beta Was this translation helpful? Give feedback.
All reactions