Protocol: graph#
The graph commands a program sends to a running game, as the engine describes them: what each takes, what it answers and what it does. Back to all commands.
graph.uses#
graph.uses {kind: text, name: text, part?: text} -> {uses: [record], read: text, columns: text} · read, read-only
Finds every place the game names a part, a field, a thing, an event, an input action, a tuning key or a clip: each call of a script or library that names it to the engine with a string (get, set, has, each, spawn, find, send, events, tween, input.get, input.held, and tuning.NAME), and each line of a scene or the project file that declares or uses it. A clip's uses are who plays it: the [clips] key that declares it, each scene thing whose Clip starts with it, and each script line that sets a Clip's name to it or spawns a thing with it, where the name is written out; a name that comes through a variable is not found. For a rename's dry run, the uses of a name, and the game graph's text edges. It reads the files as they are and changes nothing.
| Parameters | Type | Meaning |
|---|---|---|
kind | text | What the name is: part, field, thing, event, action, tuning or clip. |
name | text | The name, as written. |
part? | text | For a field, the part it is of. Left out: the field of any part. |
| Result | Type | Meaning |
|---|---|---|
uses | [record] | One {file, line, column, how} per place, scripts and libraries first, then the project file, then the scenes: file from the project file's folder, the line and column where the name's text begins, and how it is named there: the engine function a script passes it to ("get", "input.held", "tuning"), "scene" or "project". |
read | text | How the answer was read: "text", the scripts' text and the scene and project files, not the values it runs with. A call to the engine through another name (local f = get; f(e, "Body", "vx")) is not seen, and a local that shadows an engine function is taken for it. |
columns | text | The unit columns count in: "utf16", UTF-16 code units from 1, as an editor's text model and the Language Server Protocol count them (a letter outside the Basic Multilingual Plane is two). Lines count from 1. |
Generated from Coldwave 0.0.1 r289, 2026-11-30 by the binary itself: do not edit by hand.