mineflayer-statemachine icon indicating copy to clipboard operation
mineflayer-statemachine copied to clipboard

create new defineable methods to customize behaviour of NestedStateMachine

Open kaduvert opened this issue 7 months ago • 5 comments

makes NestedStateMachine call onStateMachineEntered() / stateMachineUpdate() / onStateMachineExited() respectively on enter / update / exit events if they are defined

kaduvert avatar Nov 23 '23 11:11 kaduvert

this is a breaking change right?

rom1504 avatar Dec 17 '23 18:12 rom1504

~~no, it changes names of functions with internal logic, which is accounted for by renaming all internal references.~~

no.

kaduvert avatar Dec 17 '23 19:12 kaduvert

i updated it so that instead of moving logic to make room for overwriting methods, it now just calls newly defineable methods if they're present

this now breaks nothing; only additions

kaduvert avatar Dec 18 '23 12:12 kaduvert

@kaduvert, if the bot exits 3 nested states, will it call them all respectively?

sefirosweb avatar Mar 16 '24 18:03 sefirosweb

yes!

kaduvert avatar Mar 16 '24 18:03 kaduvert