* @static willProceed - Once the shouldProceed check is passed, each action * should implement its own logic according to its requirements to respond to * the game proceeding. * * @return {Promise}
()
| 164 | * @return {Promise} |
| 165 | */ |
| 166 | static async willProceed (): Promise<void[]> { |
| 167 | const promises: Promise<void>[] = []; |
| 168 | |
| 169 | this.instances((instance: any) => { |
| 170 | promises.push(instance.willProceed()); |
| 171 | }); |
| 172 | |
| 173 | return Promise.all(promises); |
| 174 | } |
| 175 | |
| 176 | /** |
| 177 | * @static shouldRollback - Similarly to the shouldProceed () function, this one takes |