* @static willRollback - Once the shouldRollback check is passed, each action * should implement its own logic according to its requirements to respond to * the game reverting the previous action * * @return {Promise}
()
| 199 | * @return {Promise} |
| 200 | */ |
| 201 | static async willRollback (): Promise<void[]> { |
| 202 | const promises: Promise<void>[] = []; |
| 203 | |
| 204 | this.instances((instance: any) => { |
| 205 | promises.push(instance.willRollback()); |
| 206 | }); |
| 207 | |
| 208 | return Promise.all(promises); |
| 209 | } |
| 210 | |
| 211 | /** |
| 212 | * @static bind - The binding is the second step of the Mounting cycle, all |