-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I Need a SortedMutableEntityBag #156
Comments
Hi, What exactly is your entity removal doing? Doing an array copy every time you remove an entity feels highly inefficient? |
I implemented it this way because I needed the same behavior as with an arrayList. I didn't use a normal ArrayList because I wanted to use the EntityBag interface so that I could use the entities from the families without having to do any conversions beforehand. I will sit down and try to make a pull request. |
I have a small question, would it be bad if I put MutableEntityBag in an extra file? Ohh .wait.... |
I don't think that this has anything to do with performance. It is just my personal preference that I group things that belong together in one file. However, if a file gets to big I split it up like I did it recently with world and world configuration if I remember correctly. But feel free to extract the interface into a separate file. It has a lot of methods and might be better to move it into a separate file. Btw, if you have time, can you also add the |
refer to the PR. If you have further questions/feedback then please let me know :) |
Lets make MutableEntityBag open so i can override it and make my SortedMutableEntityBag
Important is how entities are delete: i need this way:
i want to override minusAssign
The text was updated successfully, but these errors were encountered: