MCPcopy
hub / github.com/GooseMod/OpenAsar / record

Method record

src/splash/index.js:94–101  ·  view source on GitHub ↗
(id, state, current, outOf)

Source from the content-addressed store, hash-verified

92 }
93
94 record(id, state, current, outOf) {
95 this.total.add(id);
96
97 if (current) this.progress.set(id, [ current, outOf ?? 100 ]);
98 if (state === 'Complete') this.done.add(id);
99
100 this.send();
101 }
102
103 send() {
104 if ((toSend === -1 && this.progress.size > 0 && this.progress.size > this.done.size) || toSend === this.st) {

Callers 3

initOldFunction · 0.95
simpleRecordFunction · 0.80
segmentFunction · 0.80

Calls 2

sendMethod · 0.95
setMethod · 0.80

Tested by

no test coverage detected