You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to have access to the private member field, entities, from within subclasses of IteratingSystem.
Currently, in some of my classes that extend IteratingSystem, I override update() to carry out some initialisation before processEntity() gets called for each entity. I'd like to skip the initialisation altogether for each engine update that has no relevant entities to process. However, with the entities member field being private, I can't simply check with entities.size().
Could entities be made protected, to allow a subclass to access it directly? Or if not, maybe a protected getter?
The text was updated successfully, but these errors were encountered:
It would be useful to have access to the private member field,
entities
, from within subclasses ofIteratingSystem
.Currently, in some of my classes that extend
IteratingSystem
, I overrideupdate()
to carry out some initialisation beforeprocessEntity()
gets called for each entity. I'd like to skip the initialisation altogether for each engine update that has no relevant entities to process. However, with theentities
member field being private, I can't simply check withentities.size()
.Could
entities
be made protected, to allow a subclass to access it directly? Or if not, maybe a protected getter?The text was updated successfully, but these errors were encountered: