MCPcopy Create free account
hub / github.com/Monogatari/Monogatari / willRollback

Method willRollback

src/lib/Component.ts:201–209  ·  view source on GitHub ↗

* @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}

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

instancesMethod · 0.95
allMethod · 0.45

Tested by

no test coverage detected