@sschepis/resolang
Version:
ResoLang - Core quantum resonance computation library for browser and Node.js
15 lines (12 loc) • 415 B
text/typescript
// assembly/runtime/instructions/system/tick.ts
import { IInstructionHandler } from "../types";
import { RISAEngine } from "../../../runtime";
import { Argument } from "../../argument";
class TickInstruction implements IInstructionHandler {
execute(engine: RISAEngine, args: Argument[]): bool {
engine.getGlobalState().tick();
return true;
}
}
const tick = new TickInstruction();
export default tick;