Include "something " (see Possible Solutions) that allows testing if a given Forge2DGame
has registered a given ContactCallback
.
To allow writing tests that ensure a given ContactCallback
has been registered.
No
_contactCallbacks
in Forge2DGame
and _callbacks
in ContactCallbacks
public with @visibeForTesting
Forge2DGame
that allows checking if a callback is registered (hasCallback
). Defining the same method for ContactCallbacks
._callbacks
from ContactCallbacks
and contactCallbacks
from Forge2DGame
entirely and deprecating register
, deregister
and clear
since it can be done with add
, remove
and `clear.UnmodifiableListView
(read-only list) in both ContactCallbacks
and Forge2DGame
.Please if you have other possible solutions consider joining the issue. Or even if you have a preference for one of the above also join this issue. Any contribution is helpful!
I am highly interested in working on a PR for this.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too