-
Heyo, I saw that registry.entity()/version() were removed and replaced with entt_traits::to_entity()/to_version(). I see that they work, but the way I'm calling them seems a bit verbose. Not a big deal since I can alias them myself, but I just wanted to check, is there a more succinct way to call them than this?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Yeah, they were removed because you don't have to create a registry nor to include it to be able to use the storage class. |
Beta Was this translation helpful? Give feedback.
-
Or we could add an |
Beta Was this translation helpful? Give feedback.
Yeah, they were removed because you don't have to create a registry nor to include it to be able to use the storage class.
There is actually no succint way to do it. The best we can do is to turn it into the
basic_entt_traits
vsentt_traits
model already in use in the rest of the codebase.This way, for the default entity type you would have:
entt::entt_traits::to_entity(entity);
.