Skip to content

Succinct way to get entity ID/version? #787

Answered by skypjack
Net5F asked this question in Q&A
Discussion options

You must be logged in to vote

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 vs entt_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);.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@Net5F
Comment options

@skypjack
Comment options

Answer selected by Net5F
Comment options

You must be logged in to vote
5 replies
@Net5F
Comment options

@skypjack
Comment options

@Net5F
Comment options

@skypjack
Comment options

@Net5F
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants