This is a continuation of #25. Base class is given a bind function. Dungeon callbacks are bound to class instances, like the JS version. Gives several functions the same signatures as their JS counterparts, no more passing self with callbacks or awkwardly documented gen param.
May have missed something here, only tested with preciseWithMovingPlayer. Maybe worth considering automated tests some time?
This is a continuation of #25. Base class is given a
bind
function. Dungeon callbacks are bound to class instances, like the JS version. Gives several functions the same signatures as their JS counterparts, no more passingself
with callbacks or awkwardly documentedgen
param.May have missed something here, only tested with preciseWithMovingPlayer. Maybe worth considering automated tests some time?