zdandoh / ecs

Golang ECS library using go generate
MIT License
5 stars 0 forks source link

Add ID() to Entity #3

Closed delaneyj closed 10 months ago

zdandoh commented 10 months ago

I had actually added this previously and then removed it because I felt that it broke the abstraction of the library more than needed. I added entity.Is() and entity.Zero() instead, is there a specific use case you're thinking of for this?

delaneyj commented 10 months ago

Debug, logging and serialization all need ways to know the ID

zdandoh commented 10 months ago

Sounds good, added.