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
8000
to refresh your session.Dismiss alert
And then just iterate through it to get a list of all my entities, while it works, it would be nicer if I did not have to add a dummy component.
Use case
I wanted to fetch all entities for a debug menu so that I could implement a GUI where I can just click to select an entity from the list to add or remove a component from UI during testing. This is a lot faster than having to make all component changes programmatically.
Apologies about the delay, I started testing it yesterday but I was having some really odd problems and I was not sure if it was just me or a bug, I am still not sure as I have not had the time to check it today.
For reference, I was just replacing instances of dominion.findEntitiesWith(FillerComponent.class).iterator(); with dominion.findAllEntities().iterator(); on the assumption it would give me the exact same results, and it even works for most of my test scenes, just that for 1 particular scene it only returns 3 out 5 entities and I am trying to figure out if I have a bug somewhere.
I reckon your changes are fine, just that some of my logic is bugged, need to debug it a bit more.
If it does end up being something with findAllEntities(), I will raise another issue.
Activity
Merge pull request #172 from dominion-dev/feature/meet_the_Fluorine_m…
enricostara commentedon Jun 26, 2023
Hi @Kureika ,
please check new Dominion.findAllEntities and let me know
enricostara commentedon Jun 27, 2023
This change was included in the new RC2
KShizuko commentedon Jun 27, 2023
Apologies about the delay, I started testing it yesterday but I was having some really odd problems and I was not sure if it was just me or a bug, I am still not sure as I have not had the time to check it today.
For reference, I was just replacing instances of dominion.findEntitiesWith(FillerComponent.class).iterator(); with dominion.findAllEntities().iterator(); on the assumption it would give me the exact same results, and it even works for most of my test scenes, just that for 1 particular scene it only returns 3 out 5 entities and I am trying to figure out if I have a bug somewhere.
I reckon your changes are fine, just that some of my logic is bugged, need to debug it a bit more.
If it does end up being something with findAllEntities(), I will raise another issue.
enricostara commentedon Jun 28, 2023
Thanks a lot for your feedback! Let me know and yes, please rise a new issue if you feel something is still wrong☺️