MCPcopy Create free account
hub / github.com/MaxBittker/rs-sdk / gosubFrame

Method gosubFrame

server/engine/src/engine/script/ScriptState.ts:363–376  ·  view source on GitHub ↗
(proc: ScriptFile)

Source from the content-addressed store, hash-verified

361 const intArgCount: number = script.intArgCount;
362 for (let index: number = 0; index < intArgCount; index++) {
363 intLocals[intArgCount - index - 1] = this.popInt();
364 }
365
366 const stringLocals: string[] = new Array(script.stringLocalCount);
367 const stringArgCount: number = script.stringArgCount;
368 for (let index: number = 0; index < stringArgCount; index++) {
369 stringLocals[stringArgCount - index - 1] = this.popString();
370 }
371
372 this.pc = -1;
373 this.script = script;
374 this.intLocals = intLocals;
375 this.stringLocals = stringLocals;
376 }
377}

Callers 1

CoreOps.tsFile · 0.80

Calls 1

setupNewScriptMethod · 0.95

Tested by

no test coverage detected