snapshot_object
Capture a labeled snapshot of an object's reflected properties for later diffing. Stores the include_super and pattern settings to ensure consistent re-walks.
Instructions
Walk an object's reflected properties and keep the result in the game under label. Read-only.
The same walk as inspect_object, kept for diff_object. include_super and pattern are stored with the snapshot so the diff re-walks the same set. Reusing a label replaces the snapshot.
Returns {label, path, count, taken}, where taken is a wall-clock timestamp (os.time()
in the game, whole seconds since the epoch). Snapshots live in the game process: they
survive a UEB.reload() but not a game restart.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | ||
| label | Yes | ||
| pattern | No | ||
| include_super | No |