* Calls each Tool reset method to clean up anything set by Tool
()
| 164 | * Calls each Tool reset method to clean up anything set by Tool |
| 165 | */ |
| 166 | public destroy(): void { |
| 167 | Object.values(this.available).forEach(async tool => { |
| 168 | if (_.isFunction(tool.reset)) { |
| 169 | await tool.reset(); |
| 170 | } |
| 171 | }); |
| 172 | } |
| 173 | |
| 174 | /** |
| 175 | * Returns internal tools |