MCPcopy Create free account
hub / github.com/FlashpointProject/launcher / setStageProgress

Method setStageProgress

src/shared/utils/TaskProgress.ts:60–66  ·  view source on GitHub ↗

* Set progress and task string for a stage * @param done Demical progress (1 is done) * @param task Task progress string to show user

(done: number, task: string)

Source from the content-addressed store, hash-verified

58 * @param task Task progress string to show user
59 */
60 setStageProgress(done: number, task: string) {
61 if (!this._done) {
62 this._stageProgressDone = Math.min(done, 1);
63 this._stageProgressTask = task;
64 this._fireProgress();
65 }
66 }
67
68 done(stageTask: string) {
69 if (!this._done) {

Callers 1

registerRequestCallbacksFunction · 0.95

Calls 1

_fireProgressMethod · 0.95

Tested by

no test coverage detected