Closed Adolio closed 1 year ago
This is really an exemplary pull request, Aurélien! Thanks a lot!
I really like how you got rid of the ugly code duplication I had in there whenever an object was removed. I'm actually a little embarrassed that it wasn't implemented like that originally! 🫢
Thankfully, the Juggler class is extensively unit tested – there are a few traps in there which can easily be overlooked, but I think all of them are covered by the unit tests. And those are running just fine after merging your changes.
So, everything is looking great! Thanks a lot for your careful implementation, Aurélien! 😄👏
Thanks Daniel for your careful review 😁
I'm very happy that you liked it, this means a lot to me coming from you! ☺️
This should prevent many String allocations
Changes
_objectIDs
is now aVector.<uint>
containing the objects' idsremoveByIndex
methodobject in _objectIDs
have been replaced bycontains(object)
advanceTime
method) logic has been updated accordinglyThis PR needs further testing. Changes are working on my side but I'm not sure I have covered all cases.