MCPcopy
hub / github.com/OpenWebGAL/WebGAL / wait

Function wait

packages/webgal/src/Core/gameScripts/wait.ts:9–25  ·  view source on GitHub ↗
(sentence: ISentence)

Source from the content-addressed store, hash-verified

7 * @param sentence
8 */
9export const wait = (sentence: ISentence): IPerform => {
10 const duration = Number(sentence.content);
11 const performName = `wait${Math.random().toString()}`;
12 const nobreak = getBooleanArgByKey(sentence, 'nobreak') ?? false;
13
14 return {
15 performName,
16 duration: duration,
17 goNextWhenOver: true,
18 isHoldOn: false,
19 stopFunction: () => {
20 // 无需状态清理
21 },
22 blockingNext: () => nobreak,
23 blockingAuto: () => nobreak,
24 };
25};

Callers

nothing calls this directly

Calls 1

getBooleanArgByKeyFunction · 0.90

Tested by

no test coverage detected