Please check whether I'm using the userData pointer correctly.
Tested both with setting a lambda as callback and passing nil to de-register.
I did not test whether passing nil actually cleans up stuff properly, just that from the game's perspective it seems to work
Please check whether I'm using the userData pointer correctly.
Tested both with setting a lambda as callback and passing nil to de-register. I did not test whether passing nil actually cleans up stuff properly, just that from the game's perspective it seems to work