- Joined
- Dec 28, 2013
- Messages
- 190
- Thread Author
- #1
There's quite a few things developers would probably want to do each loop that really wouldn't fit into a task/tree node. Especially when developing base frameworks it would be very useful and clean to run generic logic (ensure roofs are disabled, run is enabled if above a certain threshold, etc) before onLoop runs. Internally the first line of onLoop would literally just change to a call to "beginLoop".
Both Task/Tree bots literally extend from LoopingBot. We should be able to utilize this.
Or just simply allow us to override onLoop and assume developers will be smart enough to call the super method.
Both Task/Tree bots literally extend from LoopingBot. We should be able to utilize this.
Or just simply allow us to override onLoop and assume developers will be smart enough to call the super method.
Last edited: