* @static onStart - This is the main onStart function, it acts as an event * listener when the game is started. This function will call its action * counterparts. * * @return {Promise} - The promise is resolved if all action's onStart function * was resolved and is rejected if any wer
()
| 651 | * was resolved and is rejected if any were rejected. |
| 652 | */ |
| 653 | static onStart () { |
| 654 | const promises = []; |
| 655 | |
| 656 | for (const component of this.components ()) { |
| 657 | promises.push (component.onStart ()); |
| 658 | } |
| 659 | |
| 660 | for (const action of this.actions ()) { |
| 661 | promises.push (action.onStart ()); |
| 662 | } |
| 663 | |
| 664 | return Promise.all (promises); |
| 665 | } |
| 666 | |
| 667 | /** |
| 668 | * @static onLoad - This is the main onStart function, it acts as an event |
no test coverage detected