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

Method onLoad

src/actions/Particles.ts:41–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 }
40
41 static override async onLoad(): Promise<void> {
42 const particles = this.engine.state('particles');
43 if (particles !== '') {
44 const action = this.engine.prepareAction(particles, { cycle: 'Application' }) as ActionInstance | null;
45 if (action !== null) {
46 await action.willApply();
47 await action.apply();
48 await action.didApply({ updateHistory: false, updateState: false });
49 }
50 }
51 }
52
53 static override matchString([show, type]: string[]): boolean {
54 return show === 'show' && type === 'particles';

Callers

nothing calls this directly

Calls 5

stateMethod · 0.80
prepareActionMethod · 0.80
willApplyMethod · 0.45
applyMethod · 0.45
didApplyMethod · 0.45

Tested by

no test coverage detected