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

Method onStart

src/monogatari.ts:653–665  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Callers 1

setupMethod · 0.95

Calls 3

componentsMethod · 0.95
actionsMethod · 0.95
allMethod · 0.45

Tested by

no test coverage detected