Log inGet started
Package

proc.module

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

proc.code

A graph's source as code to edit. A graph and a node are the code of their init.luau (proc.define(function(g) ... end)); this module reads that code as statements and values and makes the edits the procgen tools offer on it: lift a run of statements into a node of its own (lift), write a node's body out in place of a call to it (inline), call an existing node in place of a run of statements (reference), set the arguments of a call (setArgs), add, remove, rename and repoint calls (addCall, removeCall, rename, repoint), and declare inputs and outputs (setInput, setOutput). Each edit answers with new source text and leaves the writing to its caller; build builds a source text the way loading it would, without writing it. man proc.code lists every function with its arguments.

Part of @builtin::systems.procgen.proc; required as @builtin::systems.procgen.proc.code.